What is the best control for this job?

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?
 
K

Kyle A. Miller

Kyle said:
Should I use the Repeater or DataList instead? If so, what is the proper
method to achieve what I described above?

In case this affects the answer, I am using ASP.NET 1.1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top