469,924 Members | 1,420 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,924 developers. It's quick & easy.

What's the best way to offer a fully editable grid?

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.

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #1
2 1052
Ily
Use a templatecolumn and within the template column place a textbox or
dropdown list or whatever you need.

This way all your columns will always be editable

Nov 19 '05 #2
>Use a templatecolumn and within the template column place a textbox or
dropdown list or whatever you need.

This way all your columns will always be editable


What advantage does this have over the way I suggested? Making the
columns editable isn't a problem, as even a repeater can have textboxes
in the ItemTemplate. My question was more concerning getting at the data
afterwards.

Thanks for the reply.

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by mirin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.