I've got a custom item renderer on a DataGrid which implements the
IDropInListItemRenderer interface. It uses this to figure out the
dataField the column is set to and then renders the item as appropriate.

That all works OK, but then I want a ComboBox to change the dataField
on the DataGridColumn and for everything to update as appropriate, but
it doesn't seem to want to. The column only appears to update when I
click on the header.

I've tried calling any of these on the data grid:

invalidateDisplayList();
invalidateProperties();
validateDisplayList();
validateNow();
validateProperties();

But they don't seem to be doing anything to the column.

Basically all I'm trying to do is change the dataField of a column at
runtime and use a custom renderer. I'm happy to look at alternative
solutions. E.g. I did think about creating all the columns based on
the data and adding them to the datagrid but have them not be visible,
but that might be a bit too much and wouldn't be as clean as I imagine
my solution to be (if it worked).

Any ideas are greatly appreciated.

-D

Reply via email to