RE: EUGrid - How to set row property ?

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

Phil,

It works perfectly as described. Thanks for the suggestion.

Regards,
Prasanta.
Phil Russell wrote:
> 
> 
> Hi Guys,
> 
> There is currently no way to set the attributes for an entire row in one 
> 
> go (although I will consider it for the future).  I think you can do it 
> this way though:
> 
> 1. Trap EGW_CELLFORMAT
> 
> 2. Extract the row number from the message:
> rownum = EGW_GetCellProperty(self, wParam, EGW_CELL_ROW)
> 
> 3. Get the data value from the underlying dataset that determines how 
> you want to display the row:
> dataval = EGW_GetDataCellValue ( grid, rownum, <number of data column in 
> 
> underlying dataset> )
> 
> 4. Use this to drive the formatting of the cell:
> if dataval = 'x' then
>  -- set cell font/text/color etc
> end if
> 
> This way, each cell on a particular row will be tested against the 
> underlying data value and will be formatted accordingly. 
> 
> NB I haven't tested this!
> 
> HTH,
> 
> Phil
> 



Regards,
Prasanta

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

Search



Quick Links

User menu

Not signed in.

Misc Menu