HA
haneefm
Syncfusion Team
November 2, 2007 06:10 PM UTC
Hi Brian,
One way you can do this by handling the CurrentCellKeyDown event of the grid and set the e.Handled to True when Right/Left arrowkey is pressed in GridRadioButtonCell. Below is a code snippet that shows this task.
void gridCurrentCellKeyDown(object sender, KeyEventArgs e)
{
GridControl _ctlGrid = sender as GridControl;
GridCurrentCell cc = _ctlGrid.CurrentCell;
string _strCurrentCellType = _ctlGrid.Model[cc.RowIndex, cc.ColIndex].CellType;
if (_strCurrentCellType == "RadioButton")
{
switch (e.KeyCode)
{
case Keys.Right:
e.Handled = true;
cc.MoveRight();
break;
case Keys.Left:
e.Handled = true;
cc.MoveLeft();
break;
}
}
}
Best regards,
Haneef