DataGrid - Selecting a row

  • Thread starter Thread starter Michael Cairns
  • Start date Start date
M

Michael Cairns

Im trying to work out how to select a row and change the
appearance of the selected row i a datagrid. I might also
try to show the details of a selected row on a panel in
the page. Is this difficult to do??
Could someone point me in the right direction for the this
 
Where abouts should I put these segments of code to do
this. In which Event??
 
Selecting a row is easy.

dataGrid.Select(rowno);

will select the specified row.

dataGrid[dataGrid.CurrentRowIndex,i].ToString()

will get you the value in the column i, for the current row. How do u want to change the appearance of the grid is up to u.

hope this helps

Thejus
 
Back
Top