3 Replies Latest reply on Dec 7, 2007 1:52 AM by Sreenivas R

    How to set selectedIndex=0 when i sort the datagrid

    Giribabums
      Hi all

      When i click on column heading in datagrid, i want to set the 1st item
      as selected. how can i achieve this.

      I am filling data in datagrid control and making the first index
      selected for the first time,

      my question is when i sort the columns at that time i tried to set the
      selected index to 0, but it is not selecting the first index,

      how to set the selected index to 0 when i sort any column in ascending
      or decending order.

      always 1st item should be selected in datagrid even when i click on any
      column heading to sort.

      Regards

      Girish