Data - Highlight row

  • Thread starter Thread starter Mark Goldin
  • Start date Start date
M

Mark Goldin

Is there a way to highlight the whole row in DataGrid?
I want to select a whole row clicking anywhere on that row.
I also want to prevent the user from selecting individual cells.
So when he clicks on the row the cell does not get activated.
Can someone help, please?
 
Mark,

You could probably sign up for the click event in the data grid,
selecting the entire row when it is clicked (you would have to use the
HitTest method as well to find out what you clicked on).

As for not activating the cell, it sounds like you want to make the data
grid read only, which you can do by setting the ReadOnly property on the
data grid.

Hope this helps.
 
Back
Top