Use removeColumnAt() and addColumn()/addColumnAt()
var dataArray:Array = new Array();
dataArray.push({foo:"1", bar:"2", baz:"3"});
dataArray.push({foo:"1", bar:"2", baz:"3"});
dataArray.push({foo:"1", bar:"2", baz:"3"});
dataArray.push({foo:"1", bar:"2", baz:"3"});
dataArray.push({foo:"1", bar:"2", baz:"3"});
dataArray.push({foo:"1", bar:"2", baz:"3"});
dataArray.push({foo:"1", bar:"2", baz:"3"});
dataArray.push({foo:"1", bar:"2", baz:"3"});
dataArray.push({foo:"1", bar:"2", baz:"3"});
myDG.dataProvider = dataArray;
myDG.removeColumnAt(2);
// Later call the following to get the column back:
myDG.addColumnAt(2, "baz");
Note that the third column of data is not removed from the data
provider when you call removeColumnAt(2), it just removes the visual
representation of the data.
Nathan
http://www.nathanderksen.com
On Feb 8, 2006, at 1:47 AM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
Does anyone know a way to hide a datagrid column.
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of
the addressee(s)and may contain confidential or privileged
information. If you are not the intended recipient, please notify
the sender or [EMAIL PROTECTED]
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders