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.

What sets GridDataBoundGrid.DataBoundGridModel.CurrentCellInfo?

Thread ID:





34285 Sep 7,2005 10:42 AM Sep 7,2005 11:28 AM Windows Forms 3
Tags: GridControl
Ken Overton
Asked On September 7, 2005 10:42 AM

Sorry for the lengthy posting, but I thought if I included enough context, folks could tell whether my question is a red herring or not. I have a state in which I''d like to ConfirmChanges to the cell, and there''s a few ways to do that: a) call CurrentCell.ConfirmChanges(), but that leaves the cell in editmode; I don''t want that. c) call CurrentCell.Deactivate(false), but that totally deactivates the current cell, so user has to reselect it to make it the current cell again. I''ve tried Deactivate(false) followed by SetCurrentCellNoActivate(row,col), but the odd thing with that is that GridDataBoundGrid.DataBoundGridModel.CurrentCellInfo is null. Where does this get set?

Administrator [Syncfusion]
Replied On September 7, 2005 10:58 AM

CurrentCellInfo is normally set in CurrentCell.Activate.

Administrator [Syncfusion]
Replied On September 7, 2005 11:05 AM

So what is the proper way to activate the current cell without putting it into editmode? That is, I want the current cell to receive keystrokes, but not with the TextBox renderer.

Ken Overton
Replied On September 7, 2005 11:28 AM

>So what is the proper way to activate the current cell without putting it into editmode? think I found it: _grid.CurrentCell.Activate(row, col, GridSetCurrentCellOptions.NoSetFocus)


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.