Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Question about cell Collapse All
Subject Author Date
Paolo Giustinoni Jul 12, 2006 - 12:04 PM

When I double click on a cell, I enter in edit mode to insert data..
How can I enter in editing mode programmatically?
My problem is this: I have to control if a user insert a valid value in a cell and if this isn’t valid I have to force the user to insert the correct value in the same cell, without to select any other cell.
How can I do this?

Thanks, Paolo

Technical Support Jul 13, 2006 - 1:11 PM

The CExtGridBaseWnd::EditCell() method starts the in-place editor for the cell object using the cell coordinates specified in method parameters. You can also override the CExtGridWnd::OnGridCellInplaceControlTextInputVerify() virtual method to control the text editing on-the-fly. If the bEndEdit parameter of this virtual method is set to true, the method is invoked before putting a new value into the grid cell. Otherwise, the method is invoked during text input.