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,
sorting (by clicking on a columns header) doesn''t work if the datasource is an array of objects (the columns are the object''s properties).
Is there a way to do the sorting with an array as datasource? I can''t use a table :-(.
Greetings
Falk
ADAdministrator Syncfusion Team December 12, 2005 11:53 PM UTC
The GridDataBoundGrid only directly sorts datasources that implement IBindingList.
If you use a GridGroupingControl, then that grid directly supports sorting for any IList datasource.
If you want to support sorting in GridDataBoundGrid with an ArrayList Datasource, then one way to do this is to have the objects in the arraylist implemeht IComparable. Here is a little sample showing one way you could od this.
http://www.syncfusion.com/Support/user/uploads/ArrayListSortInGDBG_6e21d24c.zip