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.
Syncfusion Feedback

CurrentCell and SplitBars

Thread ID:

Created:

Updated:

Platform:

Replies:

27540 Apr 13,2005 11:04 PM Apr 14,2005 10:36 PM Windows Forms 6
loading
Tags: GridControl
Lori S. Pearsall
Asked On April 13, 2005 11:04 PM

I''ve have a couple of GDBG''s hosted in GridRecordNavigationControls. I have SplitBars set to SplitColumns. What is the best way to ensure that the CurrentCell of the grid always refers to the currently active cell? I''ve noticed that when I click in a cell on the right side of the SplitBar, grid.CurrentCell still returns information pertaining to to the current cell on the left side of the SplitBar. I don''t want the left side of the display to change, I just basically want one "CurrentCell".

Administrator [Syncfusion]
Replied On April 14, 2005 07:14 AM

Going through the active pane should always give you the proper current cell. GridDataBoundGrid grid = this.gridRecordNavigationControl1.ActivePane as GridDataBoundGrid; Console.WriteLine(grid.CurrentCell.RowIndex.ToString() + " " + grid.CurrentCell.ColIndex.ToString()); Now if you are trying to access the currentcell as it is being moved, that might be a problem. Is that what you are doing?

Lori S. Pearsall
Replied On April 14, 2005 01:49 PM

I''m in a situation where I split the grid, click in any cell on the right side and then "unsplit" the grid. At that point, what used to be the current cell on the left side of the grid is still drawn with a dotted outline and my entire program freezes up - no error shown. I know that the PaneClosing event finishes because I''ve placed WriteLine''s in it. But, I have no other clues.

Administrator [Syncfusion]
Replied On April 14, 2005 02:00 PM

The program freezing when you remove a pane is a bug. Have you tried this in version 3.2? I think the problem has been addressed in that version.

Lori S. Pearsall
Replied On April 14, 2005 02:13 PM

I''m currently using Version 2.1.0.9. I have a final delivery within a week and can''t absorb the time needed to regression test a new version. Are there any workarounds that I can implement? Thanks!

Administrator [Syncfusion]
Replied On April 14, 2005 03:23 PM

Try handling PaneClosing and nulling out the recNav.ActiveControl there.
private void gridRecordNavigationControl1_PaneClosing(object sender, Syncfusion.Windows.Forms.SplitterPaneEventArgs e)
{
	this.gridRecordNavigationControl1.ActiveControl = null;
}

Lori S. Pearsall
Replied On April 14, 2005 10:36 PM

That worked perfectly - thanks!

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.

Warning Icon 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.Close Icon

;