datagrid select vs currentRowIndex

  • Thread starter Thread starter Deanna Delapasse
  • Start date Start date
D

Deanna Delapasse

Hi,

I've got some example code that alters the row heights of the rows in a
datagrid. Everything works fine, but when you click on the row headers
sometimes the row you clicked on pops up to the top of the grid, but the row
in its old position is the one that shows as selected. The grid is claiming
to select the correct row (I can print the row index). The example uses
dataGrid.Select(row) AND dataGrid.CurrentRowIndex in what seems like random
fashion. Can someone tell me the difference in what those two things do?

What, if anything, would be responsible for scrolling the grid based on
the selection?

thanks,
Deanna
 
Back
Top