4 Replies Latest reply on Dec 23, 2009 4:54 PM by DorrQi

    how to pre-select a datagrid


      Hey guys,


      I have a search box and a datagrid.When user search an item,if it exists,the corresponding row will be highlighted,I can also get the row's id.


      To realize it,I have to pre-select the datagrid programmingly,


      dGrid.selectedIndex = i;

      Although the datarid has been highlighted,I can not get the row's id somehow.
      id = dGrid.selectedItem[0];
      cause the selectedItem is null
      Any ideas?