Subject | Re: [IBO] Display Icon in a Grid |
---|---|
Author | jwharton@ibobjects.com |
Post date | 2004-02-05T05:09:52Z |
I believe I see the problem. You need to use the BuffFields rather than the GridFields of the grid to get at the buffer data
instead of the current row data.
Find this line of code and make it just as I have it here with BuffFields.
sFieldName := UpperCase( gr_RezCli.BuffFields[ACol-1].FieldName );
HTH,
Jason Wharton
www.ibobjects.com
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Markus,
thanks for that code.
It works insofar that there are icons shown in the grid, but the grid behaves strange.
Say I have three rows with different icons, after filling the grid, all rows show the same icon.
When I click into a row, the assigned icon for that row is shown, the other two rows show either one
of the other two, couldn't figure out any pattern.
Any idea?
Florian
instead of the current row data.
Find this line of code and make it just as I have it here with BuffFields.
sFieldName := UpperCase( gr_RezCli.BuffFields[ACol-1].FieldName );
HTH,
Jason Wharton
www.ibobjects.com
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Markus,
thanks for that code.
It works insofar that there are icons shown in the grid, but the grid behaves strange.
Say I have three rows with different icons, after filling the grid, all rows show the same icon.
When I click into a row, the assigned icon for that row is shown, the other two rows show either one
of the other two, couldn't figure out any pattern.
Any idea?
Florian