Groups | Blog | Home
all groups > asp.net webcontrols > november 2005 >

asp.net webcontrols : What is the best control for this job?


Kyle A. Miller
11/20/2005 9:07:15 PM
I understand the DataGrid is for editing a single record at a time, and
I haven't had luck pulling iterating through the Items pulling back the
values of controls in the grid. So, I am asking what is the best control
for the following? And how would you achieve the task with recommended
control?

I want to present the user with two grids on a page. The user can change
the "Qty" value for each record. After the user has changed the values,
they can post the changes made to the two separate grids by clicking a
button.

I want to loop through the rows in the grid, fetch the values the user
entered, and apply to the database. I assume I will be doing this in the
Click event of button. Like I said before, I attempt this with the
DataGrid with no luck. Every time I queried the control's value, it was
the same for all Items.

Should I use the Repeater or DataList instead? If so, what is the proper
Kyle A. Miller
11/20/2005 11:54:23 PM
[quoted text, click to view]

AddThis Social Bookmark Button