Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > What is the best control for this job?

Reply
Thread Tools

What is the best control for this job?

 
 
Kyle A. Miller
Guest
Posts: n/a
 
      11-21-2005
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?
 
Reply With Quote
 
 
 
 
Kyle A. Miller
Guest
Posts: n/a
 
      11-21-2005
Kyle A. Miller wrote:
> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question on best way to get a control's property from custom control TS ASP .Net 5 07-06-2007 01:41 AM
Best Practices: Porting ASCX control to compiled Custom Control? David Bowey ASP .Net Building Controls 1 03-16-2005 01:33 AM
Best Practices: Porting ASCX control to compiled Custom Control? David Bowey ASP .Net 1 03-16-2005 01:33 AM
Best Practices: Porting ASCX control to compiled Custom Control? David Bowey ASP .Net Web Controls 1 03-16-2005 01:33 AM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net 0 07-01-2003 09:26 PM



Advertisments