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 GridListControl

Thread ID:

Created:

Updated:

Platform:

Replies:

27563 Apr 14,2005 09:51 AM Apr 14,2005 12:35 PM Windows Forms 6
loading
Tags: GridControl
Martin Cyr
Asked On April 14, 2005 09:51 AM

Is there any built-in mechanism to allow sorting of a DataSourced GridListControl when the user clicks on a column header? Or should I use another type of grid? I''d like to obtain the same behaviour than Windows Explorer in list mode, first click to sort a column, then next clicks to toggle ascending/descending.

Martin Cyr
Replied On April 14, 2005 09:56 AM

I''ll be trying this one... /crossfingers http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=21917

Martin Cyr
Replied On April 14, 2005 09:59 AM

Don''t have the Syncfusion.Tools package... back to searching this forum...

Administrator [Syncfusion]
Replied On April 14, 2005 10:48 AM

You do not need tools for that sample. You can just remove the reference. The ComboBoxBase is in Shared. You also do not need to used teh ComboBoxBase. You can just use teh GridListControl directly on the form instead of as a dropdown.

Martin Cyr
Replied On April 14, 2005 11:16 AM

I can''t get it to work from the form directly. I fixed things so it shows on the form, but it seems the dropdown event from the combo is of some importance. I now have the arrow in the column, but it won''t repond to a click on the header. >You do not need tools for that sample. You can just remove the reference. The ComboBoxBase is in Shared. > >You also do not need to used teh ComboBoxBase. You can just use teh GridListControl directly on the form instead of as a dropdown.

Martin Cyr
Replied On April 14, 2005 11:48 AM

To be precise, it''s this line in utils.cs i''m having trouble with : cb.DropDownCloseOnClick += new Syncfusion.Windows.Forms.Tools.MouseClickCancelEventHandler(sortgridlist.utils.DropDownCloseOnClick); I don''t understand what event/handlers/object I should replace the combo with. I don''t even understand why it''s the combo who has his event registered. >I can''t get it to work from the form directly. I fixed things so it shows on the form, but it seems the dropdown event from the combo is of some importance. I now have the arrow in the column, but it won''t repond to a click on the header. > >>You do not need tools for that sample. You can just remove the reference. The ComboBoxBase is in Shared. >> >>You also do not need to used teh ComboBoxBase. You can just use teh GridListControl directly on the form instead of as a dropdown.

Administrator [Syncfusion]
Replied On April 14, 2005 12:35 PM

I did not have a problem with that line running the sample using the 2.1.0.9 version that it was originally done with. Did you try commenting it out?

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.

;