1 Reply Latest reply on Oct 6, 2009 4:57 PM by RedOctober57

    How do I set only the first row of a DataGrid as the selected row?

    RedOctober57 Level 1

      I have a "Go" button on a search form that fetches data into an already data bound grid.  After the data is fetched, I want to make the first row in the Datagrid the selected row, as if the user clicked on it.  If the result set is empty, I don't want the code to crash.  (I only want one row to be able to be selected at a time)


                  protected function btnGo_clickHandler(event:MouseEvent):void
                      getSBJsResult.token = baa_data_svc.getSBJs(cmbSrch.text);

                      grdSBJs. //  ?????  What goes here to select the first row?