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 GridListControl

Thread ID:

Created:

Updated:

Platform:

Replies:

27563 Apr 14,2005 01:51 PM UTC Apr 14,2005 04:35 PM UTC WinForms 6
loading
Tags: GridControl
Martin Cyr
Asked On April 14, 2005 01:51 PM UTC

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

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

Martin Cyr
Replied On April 14, 2005 01:59 PM UTC

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

Administrator [Syncfusion]
Replied On April 14, 2005 02:48 PM UTC

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 03:16 PM UTC

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 03:48 PM UTC

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 04:35 PM UTC

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.

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

;