1. RE: EuGrid Not Returning Row

C.K.

You need to do:

<snip>
-- sequence to hold current cell info
sequence cell
-- get current cell in {row, column_id} format
cell = EGW_GetCurrentCell( grid )
</snip>

cell[1] now contains the current row
cell[2] now contains the current column id

NB:
The EGW_GetCellProperty function is only valid when you are processing 
an EGW_CellFormat message, at which point you can use it
to get/set individual cell drawing properties (see the documentation). 
If you use it outside of this context it will have no effect and witll 
always return False...

HTH

Phil

C. K. Lester wrote:
> How do I get EuGrid to return the row number of the currently selected 
> cell?
> Here's what I try but it always returns zero:
> 
> procedure bttn_RemoveAttr_onClick (integer self, integer event, sequence
> params)--params is ()
>  junk = EGW_GetCurrentCell ( grid1 )
>  junk = EGW_GetCellProperty (grid1, junk[1] , EGW_CELL_ROW) -- get index 
>  of
> selected attribute item
>  removeAttr( junk )
> end procedure
> setHandler( bttn_RemoveAttr, w32HClick,
> routine_id("bttn_RemoveAttr_onClick"))
> 
>

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu