K
Kyle A. Miller
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
method to achieve what I described above?
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
method to achieve what I described above?