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

Cursoring Thru Covered Ranges

Run the Windows Forms Samples\Grid Samples\Quick Start\CoveredCells example shipped with Syncfusion 3.3.0.0. Cursor to cell A4. Cursor to the right and then attempt to cursor up. It requires two keystrokes to cursor up. This does not occur when attempting to cursor down or to the right and left. I understand that it is based on the current cell location when entering the merged cell. Is this a bug, or is there a setting that can fix this? Please Advise. Thanks, Steve

3 Replies

AD Administrator Syncfusion Team October 25, 2005 07:24 PM UTC

You can handle the QueryNextCurrentCell event and specify the behavior you want.
private void gridControl1_QueryNextCurrentCellPosition(object sender, GridQueryNextCurrentCellPositionEventArgs e)
{
	GridRangeInfo range = this.gridControl1.CoveredRanges.FindRange(e.RowIndex, e.ColIndex);
	if(range != null && !range.IsEmpty 
		&& (range.Top != e.RowIndex || range.Left != e.ColIndex))
	{
		this.gridControl1.CurrentCell.MoveTo(range.Top, range.Left);
		 
		e.Handled = true;
		e.Result = false;
	}
}


ST Steve October 25, 2005 11:01 PM UTC

Thanks Clay. Is this a bug that will be fixed in the next release? It''s not a critical issue for us right now. Thankss


AD Administrator Syncfusion Team October 26, 2005 03:41 PM UTC

The grid architect will try to get a fix into our code for the next release.

Loader.
Live Chat Icon For mobile
Up arrow icon