By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,864 Members | 1,315 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,864 IT Pros & Developers. It's quick & easy.

DataGrid - Selecting a row

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Michael Cairns" <mi******@hotmail.com> wrote in message news:29*****************************@phx.gbl...
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


Nov 16 '05 #2

P: n/a
Where abouts should I put these segments of code to do
this. In which Event??

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.