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 » CExtGridWnd::OnGbwAnalyzeCellMouseClickEvent how can i access the function when i enter value into c Collapse All
Subject Author Date
Gunasekaran Velu Aug 16, 2005 - 1:55 AM

 


   hi folks,


      how can i access the OnGbwAnalyzeCellMouseClickEvent function when i enter the value into the grid cell.i put the grid in dialog. suppose i want enter the value into the grid cell then i want to check the particular cell is empty or not when i press the ENTER key.


 


Thanks in advance,


Guna

Technical Support Aug 16, 2005 - 6:19 AM

We need to clarify the details of your request.

If you need to assign some initial value to an empty cell before the in-place editor appears and displays this value, you need to override the CExtGridWnd::OnGbwBeginEdit() virtual method, in which you should access the cell at the specified location and detect whether the cell is empty and needs to be initialized with some value. After that you should invoke the parent CExtGridWnd::OnGbwBeginEdit() method.

If you need to verify the result of cell editing on-the-fly or when the in-place editor is to be closed, then you should override the CExtGridWnd::OnGridCellInplaceControlTextInputVerify() virtual method. If the bEndEdit parameter is set to true, then the method is invoked for applying the editing result. Otherwise, the method is invoked for text verification (the text may get changed in the editor). If the method returns true, then it is assumed your code has performed all the actions for moving the in-place editor’s text to the cell object at the specified position. You can invoke the CExtGridCell::OnParseText() virtual method of the cell objects to verify whether the edited text is valid for the particular cell type and can be correctly converted into the cell value.