RE: [flexcoders] how to swap two rows in a datagrid

2008-08-05 Thread Tracy Spratt
yahoogroups.com Subject: Re: [flexcoders] how to swap two rows in a datagrid Thanks Tim and Tracy. I guess I need to make it little clear as Tracy suggested. I want to select 2 rows and as I click a button those 2 rows will take each other's place. Now one more thing I want to do this in a TOUC

Re: [flexcoders] how to swap two rows in a datagrid

2008-08-05 Thread Vivian Richard
Thanks Tim and Tracy. I guess I need to make it little clear as Tracy suggested. I want to select 2 rows and as I click a button those 2 rows will take each other's place. Now one more thing I want to do this in a TOUCHSCREEN monitor. Now the problem is how do I select 2 rows in a da

RE: [flexcoders] how to swap two rows in a datagrid

2008-08-05 Thread Tracy Spratt
Do you really mean "swap"? Or just re-order, as in move one row to another location? Resequence is pretty simple, swap is more complicated. Either way, as Tom says use those Collection API methods. Be careful with the row indexes, since removeItemAt will cause the indexes to change for any row "ab