The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
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.
thanks,
- Reddy
ADAdministrator Syncfusion Team March 6, 2003 08:18 PM UTC
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.