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.

sorting a grid

Thread ID:

Created:

Updated:

Platform:

Replies:

41172 Feb 23,2006 01:14 PM Feb 25,2006 10:56 AM Windows Forms 7
loading
Tags: GridControl
PLIACHAS PASCHALIS
Asked On February 23, 2006 01:14 PM

i put some data in a grid, like this 7 10 11 5 3 7 i try to sort the data by clicking on the first column and the data go on the last rows of the grid. how should i sort only the three rows that have the data? sorry for my unknowledgement and thanks for any help PP

Administrator [Syncfusion]
Replied On February 24, 2006 01:24 AM

Hi, This can be achevied, by having own IComparer object and passing it when you call grid.Model.Data.SortByCol method to do the sort. Here is a sample project Best Regards, Madhan.

PLIACHAS PASCHALIS
Replied On February 24, 2006 06:06 AM

Thanks for your reply. unfortunatelly i am not familliar in C#. i could prefer the code of the NewComparer class to be tin Vb net. Thanks any way PP >Hi, > > This can be achevied, by having own IComparer object and passing it when you call grid.Model.Data.SortByCol method to do the sort. >Here is a sample project > >Best Regards, >Madhan.

Administrator [Syncfusion]
Replied On February 24, 2006 10:16 AM

Hi Pliachas, Here is a sample project on VB. Kindly, try it let us know if it helps Best Regards, Madhan.

PLIACHAS PASCHALIS
Replied On February 24, 2006 03:15 PM

Thanks for response i''ll try that and i''ll let you know. PP >Hi Pliachas, > >Here is a sample project on VB. Kindly, try it let us know if it helps > >Best Regards, >Madhan.

PLIACHAS PASCHALIS
Replied On February 24, 2006 03:26 PM

Ok it works but how should i extend the sorting for strings that should be on the third column or fo dates also. Thanks for help anyway. PP >Thanks for response i''ll try that and i''ll let you know. >PP > >>Hi Pliachas, >> >>Here is a sample project on VB. Kindly, try it let us know if it helps >> >>Best Regards, >>Madhan.

Administrator [Syncfusion]
Replied On February 25, 2006 01:22 AM

Hi Pliachas, Here is a sample project, implementing Icomparer for sorting of integers, strings and DateTime datatypes. Let us know if you need further assistance, Best Regards, Madhan.

PLIACHAS PASCHALIS
Replied On February 25, 2006 10:56 AM

well i get an error at Integer.TryParse where the vb language tells me that the tryparse isn''t a member of integer. I'' ll try to fix it. Thanks for your help. PP

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.

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.

;