RE: EuGrid question
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Jul 21, 2003
- 422 views
Ah, excellent. Guess I didn't read the code closely enough. I'm not sure what you've fixed, but I just found this in EGW_DeleteColumn: -- Adjust current cell if necessary if GridCurrentCell[grid][COL_ID] = col_id and column = length(GridCol[grid]) then -- begin mwl 7/21/03 if column > 1 then GridCurrentCell[grid][COL_ID]=GridCol[grid][column-1][EGW_COL_ID] elsif not length(GridCol[grid]) then GridCurrentCell[grid] = {-1,-1} end if -- end mwl Basically, I was getting an out of bounds error if column = 1. Thanks, Matt Lewis > From: Jonas Temple [mailto:jtemple at yhti.net] > As one who's used EuGrid fairly extensively, maybe I can > help. The grid > will be cleared if you call EGW_LoadData as: > > void = EGW_LoadData( grid, {{}}, EGW_REPLACE ) > void = EGW_DeleteDataRow(grid, 1) > > and then call repaintWindow(grid) to refresh the grid > control. I know > this is cheesy, but the grid data is replaced by an empty row > and then > you delete the empty row you just added. > > FYI, Phil hasn't been around lately and both Tony Steward and myself > have sent requests for bug fixes/enhancments and have not heard from > him. > > Phil, if you read this and never got the requests, please let me know.