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 drop down control in the grid

Thread ID:

Created:

Updated:

Platform:

Replies:

50788 Oct 18,2006 07:28 PM Oct 30,2006 02:09 AM Windows Forms 1
loading
Tags: Grouping
Paulo Cristini
Asked On October 18, 2006 07:28 PM

Like a normal drop down control is there any way to set the "Sorted" property to true for the drop down cells on the grid?

Administrator [Syncfusion]
Replied On October 30, 2006 02:09 AM

Hi Paulo,

We apologize for the delay in responding to you and also we thank for your patience.

To sort the dropdown control of the Grid, you need to handle the CurrentCellShowingDropDown event. Below is a code snippet

GridDropDownGridListControlCellRenderer cr = this.gridControl1.CurrentCell.Renderer as GridDropDownGridListControlCellRenderer;
if(cr != null)
{
DataTable dt = cr.ListControlPart.DataSource as DataTable;
dt.DefaultView.Sort = "[ColumnName] DESC";
}

Best Regards,
Haneef

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.

;