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

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;
		this.gridControl1.WantTabKey = true;

Live Chat Icon For mobile
Up arrow icon