Edit multiple line items in a datagrid

  • Thread starter Thread starter moondaddy
  • Start date Start date
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.
 
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
 
Back
Top