Webpage Datagrid

G

Guest

I have an asp page which contains a datagrid.
Is it possible to let a user highlight or focus on a certain cell (can be
any row and any column) and extract the contents of that cell?
I have not been able to find a sample of this scenario.
Any help is greatly appreciated.
Thanks in advance for any assistance.
 
B

Brock Allen

Nothing's built in to do this. You'd have to use stylesheets and javascript
to get this behavior.
 
E

Eliyahu Goldin

Frank,

Datagrid renders as a table. In ItemDataBound event handler you get
reference to every row. You can setup client side onclick event for every
cell to highlight the cell. If you mean accessing the cell content on the
client, you can either pass "this" parameter to the client-side onclick
event handler or operate on the dhtml model for the table the datagrid is
rendered as.

Eliyahu
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top