1 Reply Latest reply on Feb 6, 2011 7:59 PM by Johnking08

    De-selection in a DataGrid

    Johnking08 Level 1

      I use a DataGrid in a popup window. When it is shown in the first-time, no rows are selected. A row gets selected when using the data grid. Then the

      Popup DataGrid will be closed.


      When I open the popup window again, the previous selection is still there. How do I initialize the DataGrid so it has no row selected?

        • 1. Re: De-selection in a DataGrid
          megharajdeepak Level 1

          Hi there,


          When you are about to call the pop up window with the datagrid, set the selectedIndex property to -1 (yourDataGrid.selectedIndex=-1). This shall make sure that no rows are selected in your datagrid. Let me know if that works for you.




          1 person found this helpful