select data in the grid

D

Dave

I have a button on each row that just highlites the row. then I new to click
a button on the form and retrieve the columns who's row was highlighted
 
E

Elton Wang

Hi Dave,

Why don't you just retrieve data and highlite row in one operation? That
will be easy. In datagrid_ItemCommand event, use e.Item to get clicked
DataGridItem. Otherwise, you might save row index (e.Item.ItemIndex) in
somewhere, SessionState, ViewState, or Cookie. Then in second click, use the
row index to retrieve data.

HTH

Elton Wang
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top