Hi,
 
I'm working on datagrid columns adjustment based on the content of
cells. Basically columns widths are adjusted based on maximum cell
width in the column. I extended the DataGrid class and added
adjustment on setting of dataprovider. The problem is that columns are
not adjusted if the datagrid is not visible at the time of setting the
dataprovider. 
 
For example I have a datagrid in an accordion component and if the
data grid is not in the active panel at the beginning, the columns are
not adjusted. After the data grid is shown for the first time, each
later adjustment works, even if the data grid is not visible (i.e, not
in the active panel of the accordion). I also want to invoke
adjustment on data grid width changes. Does anybody has any ideas
which events I can listen to for these two cases? The important thing
is also not to invoke the adjustment too often, I mean not to attach
it to an event which is often dispatched.
 
Thanks,
Grzegorz and Karl.


Reply via email to