I have an ArrayList of CustomerDetails objects. CustomerDetails object has about 15 properties. I am using a ComboBoxExt and setting the GridList control as the ListControl for my combobox. By Setting Datasource = myCustomerList it displays all the 15 columns.
How do I bind only 4 Properties (say Name, City, State and Zip) to my GridListControl, so that it does not display all the columns? Also, how do I change the default order of the columns in my GridListControl? Currently it is displaying the order in which the properties appear in my code, which is not user friendly.
ADAdministrator Syncfusion Team March 6, 2003 03:18 PM
There are no properties that you can set to accomplish the task of controlling the order and number of columns in a GridListControl.
But it is straight-forward to manage this through two events on the embedded GridControl which is a member of the GridListControl. In a QueryColCount handler, you can specify the number of columns that you want to see. In a QueryCellInfo handler, you can specify what property appears in what column. There is a sample project attached showing how you might go about this.