I'd like populate value to unbound column when row is displayed.
I know there is initRow event but this seems to be fired for all populated rows before show grid.
What I'm looking for is event fired for actually displayed rows only
(So let's say if 20 rows are visible then event fired 20x only, and each time when scrolling to see new rows)
Is it feasible?
Hi,
There's really no event for this.
One thing you might try it using InitializeRow, but set the grid's LoadStyle to LoadOnDemand. I think this will cause the grid to only load rows that are actually in view.
Thanks for your suggestion.
LoadOnDemand in some cases works indeed.
Unfortunately it deosnt work if I'm using summaries - than grid preloads all content anyway and event is fired on every row
Well, if you are using a summary, then the grid has to load all of the rows, anyway. There's no way around that. The grid can't calculate the summary without all of the data, obviously. :)
The only other option I can see would be to use a DrawFilter and trap for the painting of the cell. I'm not sure changing the value of the cell inside a DrawFilter is a good idea. But it might be worth a shot.