Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selecting the entire row instead of cell in the DataGrid in Compact Framework

How do I when the user clicks a cell in the DataGrid, the entire row is selected instead of just the cell is selected.

like image 857
ridermansb Avatar asked Mar 03 '11 20:03

ridermansb


1 Answers

Use following code on datagrid1_CurrentCellChanged

datagrid1.Select(this.datagrid1.CurrentRowIndex); 
like image 72
DharaPPatel Avatar answered Oct 10 '22 10:10

DharaPPatel