Professional UI Solutions
Site Map   /  Register


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 » find a cell cursor in a grid Collapse All
Subject Author Date
Art Wilkes Jun 12, 2010 - 10:32 AM


Using CExtGridWnd how do you go about finding a cell cursor, and also a row cursor.  I would like to make a default row for addition or deletion  row.

Also is there any way to tell if the grid or portions of the grid have been modified.  I can just re-search the grid but that’s not very efficient.



Technical Support Jun 14, 2010 - 9:55 AM

The CExtGridBaseWnd::FocusGet() method returns a location of the focused grid cell. If both row and column numbers are negative, then there is no focused cell. If you are using the full row focus/selection model, then only the row number is important.
The CExtGridWnd::OnGridCellInputComplete() virtual method can be overridden to catch the cell modification event.