We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How do I cause a column to sort programatically in a GGC

When I first bring a grid up and after I add data to one of its nested tables I want to sort the rows in the table I added data to based on the value in a specific column.

How do I do this?

3 Replies

AD Administrator Syncfusion Team July 24, 2006 04:44 AM UTC

Hi Bill,

Refer to the KnowledgeBase (KB) article link below, that helps in sorting columns programatically.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=149

Regards,
Rajagopal


BL Bill Langlais July 25, 2006 02:16 AM UTC

Hi,

Thanks for the pointer. I have one question. If I add the sortingcolumn will it resort sort any time I add data? Do I need to keep adding it?

>Hi Bill,

Refer to the KnowledgeBase (KB) article link below, that helps in sorting columns programatically.

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=149

Regards,
Rajagopal


AD Administrator Syncfusion Team July 25, 2006 06:34 AM UTC

Hi Bill,

Once you call the SortedColumns.Add() method, it creates a SortColumnDescriptor and adds it to the end of the SortColumnDescriptorcollection. You need not keep adding it, the sorting will be done accordingly for every change taking place.

Thanks,
Rajagopal

Loader.
Live Chat Icon For mobile
Up arrow icon