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

How to handle editing/inserting with a gridview in a formview

Posted on 2008-10-29
5
539 Views
Last Modified: 2008-11-04
I;ve got to display orders details and order items on a vb webpage.  It looks like the best way of showing this in aspx is to have a formview showing the Order details with a embeded griview showing order items.

I set this up with two sql datasources and I can show data fine. However, I', hjaving difficulty handling edits/inserts with this setup.  When I update the form, the updates in the gridview disapear, and vis-versa.

Has anybody got any code sample for this?  It's a very common thing in access (form/sub-form) but I cant find anything miuch for aspx!
0
Comment
Question by:jmsjms
  • 3
  • 2
5 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 22839927
0
 

Author Comment

by:jmsjms
ID: 22840740
Hi CodeCruiser,

>http://visualbasic.ittoolbox.com/groups/technical-functional/vb-dotnet-access-l/writing-to-related-child-table-using-details-form-controls-2249978

Not relevant - Doesnt provide any help, it's just a user asking for a similar (but not the same) thing

>http://blogs.msdn.com/bethmassi/archive/2008/02/19/one-to-many-master-detail-forms-with-linq-to-sql.aspx

Not relevant - This is about VB winforms.  I need the info for a webapp (as noted in question)

>http://doc.xceedsoft.com/products/XceedGrid/Building_a_bound_hierarchical_master_detail_grid.html

Not relevant - about building a hierarchical master/detail grid.

>http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.adonet/topic58829.aspx

Not relevant - About binding two grids.

>http://quickstarts.asp.net/QuickStartv20/util/srcview.aspx?path=~/aspnet/samples/data/GridViewMasterDetailsInsert.src

Not relevant - About a grid master and a details view linked to the grid.

This is just stuff that I've dug up on numerous occasions that does't help at all.  Have you read my question?  ;-)

I can see loads on the net about having a grid view and then opening up a detailsview/formview based on selected record.  I know how to do this and use this regularly.

I really need to get this working ASAP, and whilst I appreciate your efforts these non-relevant links arent helping and perhaps stop ofther experts looking as they think we are working ont it.   I've ahd to re-ask this question in another format because my similar question (which you answered using the technique) has stalled  Can I ask you to only give me relevant help.

Many thanks.
John


0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 22841150
Glad to not bother mate.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 22841162
By the way, this platform is meant to provide either hints or links to resources which may help construct the solution. I hope you are not expecting a visual studio solution uploaded as a zip file.
0
 

Accepted Solution

by:
jmsjms earned 0 total points
ID: 22842607
CodeCruiser, I'm happy and very grateful for relevant Google search results.  If you find any please let me know.

As for coding, I'm looking for whats hopefully a standard code pattern.  Ie. empty code or example as to how to handle a nested gridview inside a formview.  

Just so happens that I think I've found what i need doing another search.  Ironic really as the guy has kindly created a complete VS solution.

For reference, and in case someone else browses to this in search of the same thing its

http://www.eggheadcafe.com/tutorials/aspnet/0af43149-8fa7-4ab8-8d08-e885090f1a8d/aspnet-data-control-seri.aspx


0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
How do sunrise and sunset times change with altitude 14 38
asp Google Map 2 32
SSRS Deployment problem 5 66
Adding items to a C# list incrementally 5 33
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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