How can i add edit boxes, and read their values during submit, with an asp:Repeater
?
i have an asp:GridView
which is displaying a read-only (i.e. non-editable) set of data, e.g.:
How can i enabled the cells of the GridView
to be editable, e.g (Photoshop Mockup):
Note: i didn't mockup in Photoshop an edit box into every row and column (cause it was taking too long). You still get the idea.
- How can i convince an
asp:GridView
to show an edit-box in each cell? - If i do convince the
asp:GridView
to show an edit-box, how do i "read" themOnClick
of Save button?
Bonus Chatter
i would not be opposed to using an asp:Repeater
, manually placing <INPUT>
controls. My confusion then is about how to read each input during the OnClick
of the Save button. And although i would be perfectly happy to use a repeater, and a GridView might not be able to accomplish what i want making the repeater the only possibility, this question is about a GridView.
- If the GridView can do it: great; how?
- If the GridView cannot do it: that's an answer too.