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 have a GridListControl on a form that I''m filling with data by setting its DataSource property to that of a strongly-typed custom collection. Every public member of the class that the objects in the collection are has a column automatically created for it when I do this. How do I tell the grid to only show columns for certain class members when binding a collection of objects to a GridListControl?
ADAdministrator Syncfusion Team May 24, 2005 09:47 PM UTC
You can hide a particular column in a GridListControl with code like:
//hide the first column
this.gridListControl1.Grid.Cols.Hidden[1] = true;
ADAdministrator Syncfusion Team May 25, 2005 01:59 PM UTC
Is there any way to arrange the order of columns when you have a strongly-typed collection as the DataSource for a GridListControl? The order in which the class members are bound the columns appears to be completely arbitrary.
ADAdministrator Syncfusion Team May 25, 2005 03:08 PM UTC
Have your objects implement ITypedList. The order of the property descriptors determin the column order. Here is a forum thread that starts discussing this about mid way through. It has a link to another thread that has an ITypedList example.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=23993
ADAdministrator Syncfusion Team May 25, 2005 03:16 PM UTC
Thank you very much. This looks to be exactly what I am aiming for.