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.

How can I sort the grid EXCEPT FOR the last row?

Thread ID:





13471 Apr 29,2004 07:45 AM Apr 29,2004 11:51 AM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On April 29, 2004 07:45 AM

Hi, I am using DataBoundGrid. I want to sort the data by clicking the header, but I do not want the last row will always stay on the bottom. Is there any good way to do that? Thanks a lot Chris

Administrator [Syncfusion]
Replied On April 29, 2004 11:51 AM

I do not know of any way to use the default DataView sorting in the GridDataBooundGrid and get this done. One way to do this is to do your own sorting. You can create an indexer arraylist that is used to index the look up of items in your data source. Forcing the grid to use the indexer lookup can be done by handling a couple of events that are part of the grid''s virtual data support. Once this is done, you can do your own sorting by creating an IComparer object that sorts things in the way you want. Here is a sample that does not sort the last row. CustomSortInGDBG_6728.zip


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.