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 03:19 PM UTC

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.
Up arrow icon