[flexcoders] Re: Adding columns in DataGrid dynamically

2007-02-08 Thread sanjaypmg
Hi have done it by giving an id to the colum and sets its visible property to hide/show that purticular column. Thank, Sanjay --- In flexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote: something like this should work (note, this code is off the top of my head and not tested)

RE: [flexcoders] Re: Adding columns in DataGrid dynamically

2007-02-08 Thread Tracy Spratt
@yahoogroups.com Subject: [flexcoders] Re: Adding columns in DataGrid dynamically Hi have done it by giving an id to the colum and sets its visible property to hide/show that purticular column. Thank, Sanjay --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper [EMAIL

Re: [flexcoders] Re: Adding columns in DataGrid dynamically

2007-02-07 Thread Jeff Tapper
something like this should work (note, this code is off the top of my head and not tested) var colArray:Array = dg.columns; // remove column 3 var newColArray = colArray.splice(3,1); dg.columns = newColArray; At 12:00 PM 2/4/2007, sanjaypmg wrote: Hi, How can I delete a colum dynamicall?

[flexcoders] Re: Adding columns in DataGrid dynamically

2007-02-04 Thread sanjaypmg
Hi, How can I delete a colum dynamicall? Thanks Sanjay --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: You can reassign the grid's columns property to accomplish this. Array methods like push don't emit the events necessary for the component to detect that the

[flexcoders] Re: Adding columns in DataGrid dynamically

2007-02-02 Thread Doug Lowder
You can reassign the grid's columns property to accomplish this. Array methods like push don't emit the events necessary for the component to detect that the array has changed, thus the component will not update. Try: public function populateData() { // code snipped var newCols: Array = [];