We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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 06:34 AM

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.
Live Chat Icon For mobile
Up arrow icon