AD
Administrator
Syncfusion Team
October 30, 2006 07:09 AM UTC
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