AD
Administrator
Syncfusion Team
November 8, 2006 08:42 AM UTC
Hi Venkatesh,
You would have to derive the combobox cell renderer and override the OnKeyPress method. Please try the attached sample and let me know if this helps.
public class MyComboBoxCellRenderer : GridComboBoxCellRenderer
{
public MyComboBoxCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
: base(grid, cellModel)
{ this.SupportsFocusControl = true; }
protected override void OnKeyPress(KeyPressEventArgs e)
{
char c = e.KeyChar.ToString().ToUpper()[0];
KeyPressEventArgs arg = new KeyPressEventArgs(c);
base.OnKeyPress (arg);
e.Handled = true;
}
}
Here is a sample.
http://www.syncfusion.com/Support/user/uploads/ComboBox_f015379f.zip
Best Regards,
Haneef