Highlight DataGrid Row

  • Thread starter Thread starter Michael Ramey
  • Start date Start date
M

Michael Ramey

I'm using the following code to highlight the current row:

private void Datagrid1_CurrentCellChanged(object sender, System.EventArgs e)
{
DataGrid1.Select(DataGrid1.CurrentRowIndex);
}

The entire row is selected, but the cell with cursor in it, shows the grid
value as selected. The looks strange. Is there a way to eliminate the cell
selection?

Thanks.

Michael
 
Back
Top