Edit multiple line items in a datagrid

M

moondaddy

Is it possible to build a datagrid where each row in datagrid could have
read/write checkboxes, textboxes and dropdownlists? Then so save the
updates the user would click on a submit button and code on the server would
loop through each row to capture any changed data. This would be much
better for this particular case where users need to quickly review a list of
data, edit values in many different rows, and then save everything in a
single command. Can you refer any good samples for this?

Thanks.
 
C

Cliff Harris

AFAIK, unless there's a third party control out there (which there probably
is), you'd have to implement everything yourself.
It wouldn't be too hard using templated columns inserting the check boxes,
etc and then when the submit button is pressed, just loop through the grid,
grabbing the controls they edited (which is easy using the FindControl
method), extract their values, and update whatever datasource you are
using... not too difficult... but again, if you look hard enough, there is
prolly a control out there already...

-Cliff
 

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