Solved

Updating a gridview from different sources

Posted on 2014-02-25
2
230 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
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

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