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

Sync issue with Grid Record Navigator control + grid

The Grid Record Nav control does not seem to move the current record marker in my grid until I click on the grid i.e until the grid has focus. Once it's sync'd it seems to work fine. Anybody know how to rectify this ? rgds CW

1 Reply

AD Administrator Syncfusion Team January 31, 2003 10:19 AM

I think you might be able to handle this problem by calling gridDataBoundGrid1.Focus() in the nav control's click event. Here is some code. The only line required is the Focus call, the other just avoid a little jerky move.
private bool isFirstTime = true;
private void gridRecordNavigationControl1_Click(object sender, System.EventArgs e)
{
	if(isFirstTime)
	{
		isFirstTime = false;
		this.gridDataBoundGrid1.BeginUpdate();
		this.gridDataBoundGrid1.Focus();
		this.gridDataBoundGrid1.EndUpdate();
		this.gridDataBoundGrid1.Refresh();
	}
}

Loader.
Live Chat Icon For mobile
Up arrow icon