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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Sorting programatically in a grid

Thread ID:

Created:

Updated:

Platform:

Replies:

97307 Nov 16,2010 07:48 PM UTC Nov 18,2010 10:09 PM UTC Windows Forms 10
loading
Tags: GridControl
harshini
Asked On November 16, 2010 07:48 PM UTC

how to programatically sort a grid using the column name?


harshini
Replied On November 17, 2010 01:51 PM UTC

Also i would like to know which column is sorted ?for eg if you sort on column 1 how can you programtically get the column name?


harshini
Replied On November 17, 2010 02:35 PM UTC

i got the name of the column that is sorted as follows

this.grdDisplayItems.TableDescriptor.SortedColumns[0].Name;

now using this name i want to sort the column. can you please let me know how to do this?


harshini
Replied On November 17, 2010 06:13 PM UTC

got it from other thread!!


Nirmal Raja [Syncfusion]
Replied On November 18, 2010 05:18 AM UTC

Hi Harshini,

Thank you for your interest in Syncfusion products.

We are glad to hear that the issue has been resolved on your end.

Please let me know if you have any concern.

Regards,
Nirmal


harshini
Replied On November 18, 2010 02:43 PM UTC

how can i get the sort direction on the column sorted in a grid.

Please let me know.

Thanks.


harshini
Replied On November 18, 2010 03:49 PM UTC

got it..thanks.


harshini
Replied On November 18, 2010 08:02 PM UTC

Hi,

I could sort programatically using one column.

But i have sort the grid for more than one column.

can you please let me know how to do multi column sorting progrmatically.

i have an arraylist which has all the column names that are to be sorted.

i have to assign this to sort column descriptor and assign this
SortColumnDescriptor[] sd; to the grid as follows
grdDisplayItems.TableDescriptor.SortedColumns.AddRange(sd2);

can you please le me know how can i solve this issue.

Thanks.


harshini
Replied On November 18, 2010 10:09 PM UTC

sorry for bugging you.

i got iit..thanks.


harshini
Replied On November 18, 2010 10:09 PM UTC

sorry for bugging you.

i got iit..thanks.


harshini
Replied On November 18, 2010 10:09 PM UTC

sorry for bugging you.

i got iit..thanks.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;