Posted on 2006-06-20
I have an application which makes use of a datagrid. My problem is that if a row in the datagrid is selected, and I then programmatically select a row, I end up with 2 rows selected. If I continue selecting other rows programmatically, they get selected, but the other rows do not deselect. I was under the impression that there was a property called SelectedIndex that I could set to -1 to clear my row selections....but I cannot find that property anywhere for a datagrid within Visual Studio. The object browser does not even see it within the datagrid class. How can I accomplish this??????????? Basically to only allow one row selection at a time, whether it be UI selection or programmatically???????????