Highlight DataGrid Row

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top