1. RE: EuGrid changes?
- Posted by Jonas Temple <jtemple at yhti.net> Mar 28, 2003
- 323 views
Greg, I don't have the documentation in front of me but I think there is a change flag built into EuGrid. Jonas Greg Haberek wrote: > Phil, > > How do I determine when data in my Grid has been changed? can I use the > w32HChange event? I want > to know if *any* data has in the grid has been manipulated, so I know > whether or not the current > file needs saving. > > ~Greg > g.haberek at comcast.net > >
2. RE: EuGrid changes?
- Posted by Phil Russell <pg_russell at lineone.net> Mar 28, 2003
- 321 views
Greg, Because the grid is (in large part) an emulated control rather than a native windows control you won't get the normal w32HChange event. Instead EuGrid provides a couple of alternatives: 1. Each data row has an edit status flag associated with it, this is set automatically if any cell in that row is edited, and can be obtained with: bool = EGW_GetDataRowFlag( grid, row_num, EGW_ROW_EDITED ) You can check if your dataset has been edited by looping through the dataset checking for rows with this flag set. 2. Every time the user tries out of a cell you will the following custom message via w32HEvent: EGW_CELLCHANGE - user is trying to move to a different cell if the target cell is on a different row then you will also get: EGW_ROWCHANGE - user is trying to move to a different row If you wanted you could maintain your own edit status flag by checking for edits from these messages. The example program noah.exw (included with the EuGrid distribution) shows the use of all of the above. HTH, Phil Jonas Temple wrote: > Greg, > > I don't have the documentation in front of me but I think there is a > change flag built into EuGrid. > > Jonas > Greg Haberek wrote: > > Phil, > > > > How do I determine when data in my Grid has been changed? can I use the > > w32HChange event? I want > > to know if *any* data has in the grid has been manipulated, so I know > > whether or not the current > > file needs saving. > > > > ~Greg > > g.haberek at comcast.net > > > >