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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Sorting in GridDataBoundGrid - again

Thread ID:





28278 Apr 28,2005 10:16 AM UTC Jan 2,2006 02:50 PM UTC WinForms 5
Tags: GridControl
Rasmus Fynbo
Asked On April 28, 2005 10:16 AM UTC

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 01:23 PM UTC

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 01:53 PM UTC

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? > >Regards, >Thomas SortingGridTest_1545.zip

Administrator [Syncfusion]
Replied On April 28, 2005 02:00 PM UTC

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 06:59 PM UTC

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 02:50 PM UTC

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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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