RC
Rajadurai C
Syncfusion Team
March 4, 2010 03:00 PM UTC
Hi Jeffrey,
Thanks for your interest in Syncfusion Products.
To set the text selected in the dropdowncell on opening the dropdown, you can handle the CurrentCellShowingDropDown event with the following kind of code which is used for Combobox cell in GridDataBoundGrid.
//Method Invoker
this.gridDataBoundGrid1.CurrentCellShowingDropDown += new Syncfusion.Windows.Forms.Grid.GridCurrentCellShowingDropDownEventHandler(gridDataBoundGrid1_CurrentCellShowingDropDown);
//gridDataBoundGrid1_CurrentCellShowingDropDown
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
if (cc.Renderer is GridComboBoxCellRenderer)
{
GridComboBoxCellRenderer rend = cc.Renderer as GridComboBoxCellRenderer;
if (rend != null)
rend.TextBox.SelectAll();
}
Regards,
Rajadurai