Solved

Web Design Question

Posted on 2009-04-08
1
185 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

919 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now