Multi-select in a datagrid

R

Roger

Hi:

I'm trying to perform a multi-select in a datagrid using a ButtonColumn.
Anyone know how to do this?


Roger
 
E

Eliyahu Goldin

Roger,

You can do it on client side. In server-side ItemDataBound event handler set
"onclick" attribute for every grid item to a javascript function with "this"
as a parameter. For the javascript function the parameter will be a
reference to the selected row. You can make the row visible selected. You
can also put the reference on the row into a client-side array of selected
rows. You can pass ids of selected rows to the server in one of the ways of
transferring data from client to server.

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top