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
Solved

Web Design Question

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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