RE: EuGrid changes?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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
> > 
> >

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu