Hi,
Should the InitializeRow event fire if the column width is changed within the InitializeLayout event?I was under the impression that the event would fire only if the cell data was changed.
ThanksAnnie
Hi Annie,
The event is specifically designed to allow you to apply an appearance or perform a calculation in a row based on the data in that row. So it fires once initially when the row is first instantiated by the grid and also when data is changed in the row.
I can't see why changing the column width would cause it to fire, unless maybe changing the width of a column causes the rows to get created. If you are auto-sizing the column, for example, it has to load the data from the cells, which will force the creation of the row.
Hi Mike,
Column change event is very useful. For example, when you keep a custom column layout business object linked to the grid layout and it needs to now when column is resized because it will save the layout eventually. When column is resized, the object is marked "dirty". It will promt a user to save the layout before closing the grid. This is just one use case.
Thanks,
Slava