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.
I am currently bining a strongly-typed collection of objects to a GridList control (v3.3). The problem is all of the properties are showing up as columns and I want to programatically decide which properties to display. Does anyone have some example code? Is this possible without hiding columns?
Thanks.
ADAdministrator Syncfusion Team November 17, 2005 11:00 PM UTC
The simplest way is to hide the columns:
gridListControl1.Grid.Cols.Hidden[2] = true; //hide column 2....
If you want a solution that yo9u can implement on your collections, you can have the IList object implement ITypedList. (This will also alos you to control the display order of the properties.) Here is a forum thread that has sample code.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=9194
In the GetItemsProperties, get the default property order using the techinque shown in this forum thread. But before returning the collection, reorder the colection to the order you prefer or remove any properties you do not want to use.