I am trying to set datagrid selectedIndex. selectedIndex value is based on some logic. In mx datagrid it was simple assigning value to selectedIndex property and was working fine but is not behaving similar in case of spark datagrid.
For example - mygrid.selectedIndex = 1; does not set the value to 1.