G Guest Apr 28, 2004 #1 Hi Is it possible to highlight the clicked row in a datagrid? How to do it Thanks in advance.
A APG Apr 28, 2004 #2 Kshitij said: Hi, Is it possible to highlight the clicked row in a datagrid? How to do it? Thanks in advance. Click to expand... 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
Kshitij said: Hi, Is it possible to highlight the clicked row in a datagrid? How to do it? Thanks in advance. Click to expand... 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