Special tabbing requirements

While tabbing through the grid, my users would like the focus placed on the third cell on the next row when pressing tab from the last position of the previous row. Shift+Tab would work as normal taking users back into cell two, then one, then last position of previous row as you would normally expect. How would you recommend accomplishing this? Thank you, Todd

1 Reply

AD Administrator Syncfusion Team August 27, 2004 10:34 AM UTC

You can try handling the QueryNextCurrentCell event. If the next cell is off the grid on teh right, explicitly move it to where you want it.
private void gridControl1_QueryNextCurrentCellPosition(object sender, GridQueryNextCurrentCellPositionEventArgs e)
{
	if(e.ColIndex > this.gridControl1.ColCount && e.RowIndex < this.gridControl1.RowCount)
	{
		this.gridControl1.CurrentCell.MoveTo(e.RowIndex + 1, 3);
		e.Handled = true;
		e.Result = true;
	}
}

Loader.
Up arrow icon