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.

Sync issue with Grid Record Navigator control + grid

Thread ID:

Created:

Updated:

Platform:

Replies:

2570 Jan 31,2003 09:00 AM Jan 31,2003 10:19 AM Windows Forms 1
loading
Tags: GridControl
Chris Whellams
Asked On January 31, 2003 09:00 AM

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

Administrator [Syncfusion]
Replied On 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();
	}
}

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.

;