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 in GridDataBoundGrid - again

Thread ID:

Created:

Updated:

Platform:

Replies:

28278 Apr 28,2005 06:16 AM Jan 2,2006 09:50 AM Windows Forms 5
loading
Tags: GridControl
Rasmus Fynbo
Asked On April 28, 2005 06:16 AM

I know there''s another thread regarding this question, but it doesn''t bring up a solution.. When setting the DataGrid.SortBehavior = Syncfusion.Windows.Forms.Grid.GridSortBehavior.SingleClick nothing happens.. in my extremely simple grid.. I expected to see those small arrows in the columnheaders... What I am supposed to do to get something as straightforward as sorting grids to work??

Administrator [Syncfusion]
Replied On April 28, 2005 09:23 AM

Hi Rasmus, Is it possible to upload a sample that shows the problem? Which version do you use? Regards, Thomas

Rasmus Fynbo
Replied On April 28, 2005 09:53 AM

My example couldn''t be more simple.. it''s a simple databoundgrid and the sortingBehavior in the designer is as default set to DoubleClick.. >Which version do you use? 3.0.1.0 > >Regards, >Thomas SortingGridTest_1545.zip

Administrator [Syncfusion]
Replied On April 28, 2005 10:00 AM

Hi Rasmus An ArrayList as datasource does not support sorting, you need to add a DataTable or DataView, because the sorting is made on the DataTable.DefaultView.Sort or DataView.Sort property. Regards, Thomas

Eric Weber
Replied On December 29, 2005 01:59 PM

I''m also using a GDBG, but it is bound to an IBindingList populated with IEditableObjects. What is the easist way to implement sorting? Do you have any examples of how to implement sorting in an IBindingList? thanks!

Administrator [Syncfusion]
Replied On January 2, 2006 09:50 AM

Hi Eric, If your GridDataBoundGrid is bound to some IBindingList collection and you want your GridDataBoundGrid to support sorting , you will have to implement the IBindingList.AllowSorting property and the IBindingList.ApplySort method (in addition to the other interface members). Refer to Sample. Refer this forum for sorting the ArrayList http://www.syncfusion.com/support/forums/message.aspx?MessageID=38413 Let me know, for futher assistance. Best Regards, Madhan.

IBinding_Sorting.zip

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.

;