Solved

Web Design Question

Posted on 2009-04-08
1
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 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