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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bruno Martins
Sent: Monday, April 03, 2006 11:05 AM
To: flexcoders@yahoogroups.com
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.