DataGrid - Selecting a row

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
 
M

Michael Cairns

Where abouts should I put these segments of code to do
this. In which Event??
 
T

Thejus

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
 

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