A
Alan Silver
Hello,
I want to include a facility on a page whereby a grid of values is shown
so the user can edit it. I want it so that all values are available for
editing at all times, I don't want them to have to click on an "edit"
link to do a postback and be able to edit one line, then click OK to
submit it and have to click another "edit" for the next, etc.
I was thinking about using a repeater for this, and using textbox
controls in the <ItemTemplate>. hat way, all the contents of the grid
can be edited without a postback. I guess when the page is posted, I
would have to loop through each item in the repeater, find the controls
and deal with the contents. Is this a sensible way to do it? If not,
what is?
Also, what's the best way to allow them to add a new row to the list? I
was wondering about a separate set of textboxes below the repeater,
where they could enter the info for the new row and then click a button
to have it added. Again, is this a sensible way to do it?
Thanks for any help.
I want to include a facility on a page whereby a grid of values is shown
so the user can edit it. I want it so that all values are available for
editing at all times, I don't want them to have to click on an "edit"
link to do a postback and be able to edit one line, then click OK to
submit it and have to click another "edit" for the next, etc.
I was thinking about using a repeater for this, and using textbox
controls in the <ItemTemplate>. hat way, all the contents of the grid
can be edited without a postback. I guess when the page is posted, I
would have to loop through each item in the repeater, find the controls
and deal with the contents. Is this a sensible way to do it? If not,
what is?
Also, what's the best way to allow them to add a new row to the list? I
was wondering about a separate set of textboxes below the repeater,
where they could enter the info for the new row and then click a button
to have it added. Again, is this a sensible way to do it?
Thanks for any help.