Kshitij wrote:
Hi,
Is it possible to highlight the clicked row in a datagrid? How to do it?
Thanks in advance.
One way is to call select it when a cell is clicked or the current cell
is changed as in the following snippet:
private void dataGrid1_CurrentCellChanged(object sender, System.EventArgs e)
{
dataGrid1.Select(dataGrid1.CurrentCell.RowNumber);
}
HTH,
APG