On 4/4/06, Jason Y. Kwong <[EMAIL PROTECTED]> wrote:
I've noticed that you can't actually manipulate the columns property directly cause it looks like the grid returns a copy of its internal columns array. eg:
trace(grid.columns == grid.columns); //outputs "false"
So doing things like "grid.columns.push(...)" doesn't change anything, even if you call invalidateDisplayList(). I've had to assign back the property:
var cols: Array = grid.columns;
cols.push (...);
grid.columns = col;
Once you assign the property, the grid automatically redraws itself.
On 4/3/06, Matt Chotin < [EMAIL PROTECTED]> wrote:The columns are stored in an Array. You simply need to manipulate the array using operations like splice. Then make sure to call invalidateDisplayList to get it to redraw.
Matt
From: [email protected] [mailto:[email protected]] On Behalf Of Bruno Martins
Sent: Monday, April 03, 2006 11:05 AM
To: [email protected]
Subject: [flexcoders] Flex beta 2 - add, remove and moving DataGridColumn
I tryed almost every thing but I don't know how to add, remove and moving a column.
Please send a example.
Tks..
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service .
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
Bruno Gustavo Martins
Mobile: (55)(11)9585-9587
[EMAIL PROTECTED]
experience everywhere
http://www.dclick.com.br/blog
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

