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.

Disable tabbing

Thread ID:

Created:

Updated:

Platform:

Replies:

22642 Dec 17,2004 04:08 AM Dec 17,2004 04:38 AM Windows Forms 1
loading
Tags: GridControl
Tarun Gujral
Asked On December 17, 2004 04:08 AM

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?

Administrator [Syncfusion]
Replied On December 17, 2004 04:38 AM

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;
	}
}

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.

;