RE: EuGrid question

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

In order to get rid of all the columns, I did this:

cols = EGW_EnumCols( grid )
for i = 1 to length(cols) do
    void = EGW_DeleteColumn( grid, cols[i] )
end for

EGW_DeleteColumn() does a lookup on cols[i], which is just an index.  The
lookup value is the column number, which is upt into the 'column' variable.
If it happens to be 1...

GridCurrentCell[grid][COL_ID]=GridCol[grid][column-1][EGW_COL_ID]

...gives an error.

Matt Lewis


> I've never seen this error.  Could you post some example code?
> 
> The only other issues I'm aware with EuGrid are:
> 
> - The sort function (right click on a column header to sort the data) 
> does not work correctly for numeric values.
> - If you sort a column and the first column in the data set is not 
> visible, the sort is based on the data in the prior column.
> 

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu