Clearing selected Item from DataGrid

When you select a row/rows in dataGrid component in flash mx 2k4 and want to clear it, all you need is *selectedIndex* property of dataGrid component.

myDataGrid.selectedItem = null;
// This will clear out all selected rows.

I actually struggled to find it out, but it turned out to be that easy. :)

Comment are closed.