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.
Unfortunately, activation email could not send to your email. Please try again.

Special tabbing requirements

Thread ID:

Created:

Updated:

Platform:

Replies:

18298 Aug 27,2004 06:16 AM Aug 27,2004 06:34 AM Windows Forms 1
loading
Tags: GridControl
Todd Swygert
Asked On August 27, 2004 06:16 AM

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

Administrator [Syncfusion]
Replied On 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;
	}
}

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;