Solved

Web Design Question

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

10 Experts available now in Live!

Get 1:1 Help Now