Hi there,

To manupulate the data its better to read data in to an
ArrayCollection and then assign this to the DataGrid as the
dataProvider , where the ArrayCollection is Bindable, so if ur doing
this then any changes to the ArrayCollection will reflect the DataGrid
as it is binded , so we got manupulate the ArrayCollection on the
Click of the DataGrid now. So first to get which item is clicked we
use itemClick property of the DataGrid and its of ListEvent type and
there are constants in this Event class for rowindex and columnindex
we can use these two constants to work with our ArrayCollection.

private function itemClickHandler(event:ListEvent):void
{
     var numRowIndex:Number=event.rowIndex;
      var numClnIndex:Number=event.columnIndex;
      arrCll[numRowIndex].CHK="false";
}
here arrCll is the arrayCollection and CHK is the data [selected] for
the CheckBox in the itemRenderer
so this will change the check box value of that particular , similarly
you can toggle.
//comment for queries

regards,
kumar.

On Dec 12, 4:56 pm, sheetal <[email protected]> wrote:
> Hi,
> i am using CheckBox as Itemrenderer in a Datagrid.I want the list of
> items from the grid whose checkboxes are selected.How do i get the row
> of the datagrid where the check box is selected.Plz share if ne idea.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to