Columns

Docs

The Columns property allows you to select the particular columns from the table you wish to appear in the form. Associated corresponding labels can be specified with the Labels property.

Razor
                                
                                        
DbNetEditCore customersEdit = new DbNetEditCore("northwind", "customers");
customersEdit.Columns = new List() { "CustomerId", "CompanyName", "Address", "City", "Country", "Phone", "Fax" };
customersEdit.Labels = new List() { "CustomerId", "Company Name", "Address", "City", "Country", "Mobile", "Office" };
customersEdit.Column("CustomerID").Hidden();
customersEdit.Column("CompanyName").ReadOnly();
customersEdit.Column(new string[] { "CompanyName", "City", "Country" }).Search();
@customersEdit.Render()