Specifying Columns


The Columns property allows you to select the particular columns from the table or view that you wish to display, search, edit etc. Associated corresponding labels can be specified with the Labels property.

DbNetGridCore customersGrid = new DbNetGridCore("northwind", "customers");
customersGrid.Columns = new List() { "CompanyName", "Address + ', ' + City as Addr", "Country", "Phone + '/' + Fax as PhoneFax" };
customersGrid.Labels = new List() { "Company Name", "Address", "Country", "Phone/Fax" };