RE: [flexcoders] Re: DataGrid Column updates

2005-04-27 Thread Matt Chotin
If it works stick with it J   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Wednesday, April 27, 2005 8:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column updates   I ended off calling setValue on the column headerCe

RE: [flexcoders] Re: DataGrid Column updates

2005-04-26 Thread Matt Chotin
I think you should still set headerText and it will call setValue for you and force the redraw.  I don’t know if calling setValue yourself will work.   Not sure why invalidate() isn’t working.  This is undocumented but you could try calling updateControl() on the DG.   Matt  

RE: [flexcoders] Re: DataGrid Column updates

2005-04-26 Thread Matt Chotin
You can simply set the headerText on the DataGridColumn Call invalidate() on the DataGrid same as 2 (though you might need to reset the headerText on the column for the header to redraw).  Jim’s suggestion while it may work is completely undocumented and thus

Re: [flexcoders] Re: DataGrid Column updates

2005-04-26 Thread Jim Laing
You might try setting the booleans invDrawCols and invInitHeaders to true on the DG. The columns and headers shoud be redrawn next time round, or you could force a redraw. Check out the DG code in Flex for Flash ... it should make it clear. Jim On 4/26/05, viraf_bankwalla <[EMAIL PROTECTED]> wro