Disable tabbing

I want to disable tabbing only in ceratin rows in my grid. this.grid.WantTabKey = false; will disable tabbing of whole grid and i dont want to disable my row. How do i achieve this?

1 Reply

AD Administrator Syncfusion Team December 17, 2004 09:38 AM UTC

You could try handling CurrentCellMoved. In the handler, conditionally set WantsTabKey depending upon whether the current row has tabbing or not.
private void gridControl1_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e)
{
	if(this.gridControl1.CurrentCell.RowIndex > 1 &&
		this.gridControl1.CurrentCell.RowIndex < 4)
	{
		this.gridControl1.WantTabKey = false;
	}
	else
	{
		this.gridControl1.WantTabKey = true;
	}
}

Loader.
Up arrow icon