Solved

Web Design Question

Posted on 2009-04-08
1
186 Views
Last Modified: 2012-05-06
Experts,

I've got an order-entry web site that I'm designing and I have a few questions.

Basically, the user gets into the app and finds a GridView of all the products, along with an added textbox in which to enter item quantities.  I need those quantities to persist in the grid no matter where the user goes and no matter how he/she sorts the grid with the Product Category DropDownList box.

I do this with a static data table that is the DataSource of the GridView.  However, when they sort on a product category, I want to only display those products in the grid.  I've made a DaveVIew from the DataTable for this pupose, but I can't seem to switch the DataSource of the GridView to contain this DataView instead of its existing DataSource.

Will the DataTable be updated if changes are conveyed through the GridView?  Can you make all the rows of the GridView editable?
0
Comment
Question by:NigelRocks
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 24107040
1) If you are bound to a DataView created a from a DataTable, and you update the values, then the underlying DataTable should reflect those changes.

2) The native GridView control doesn't support editing multiple rows.  There are other controls out there, like the BulkGridView, that support multiple row edits:

ASP.NET Real World Controls
http://www.codeplex.com/ASPNetRealWorldContr/Release/ProjectReleases.aspx?ReleaseId=1674
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Login 17 51
how to convert MM/dd/YYYY hh:mm:ss AM to YYYY-MM-dd datetime format by linq? 4 59
Install Problem 13 32
Create a WebAPI using a generic return parameter 9 25
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question