Solved

Updating a gridview from different sources

Posted on 2014-02-25
2
233 Views
Last Modified: 2014-02-26
Users enter some info on an asp.net 3.5 vb page.
Then they press a button.
This runs some 2 SQL statements
The gridview needs to display what the user enters plus the result of the SQL.
If I bind the grid to the datasource then I don't know how to add the user entered information to it.

The gridview has 5 columns.

Mnemonic      - user entered
code                - SQL query.  Result may be blank
Name              - Second SQL query
StartDate        - User entered
Datatypes        - User entered

When the user presses the button all 5 columns must be populated.

The user may press the button more than once.  Each time the user presses the button another row should be added to the gridview with the relevant data.
0
Comment
Question by:AlHal2
[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
2 Comments
 
LVL 41

Accepted Solution

by:
guru_sami earned 250 total points
ID: 39886777
You will need to write a Sql query / stored procedure that returns the collective data from all the tables. The bind that result set to the GV.

On you button click, you will have to load the data every time and bind it to the GV.
0
 

Author Closing Comment

by:AlHal2
ID: 39888236
Thanks.
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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

733 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