Solved

Updating a gridview from different sources

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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 the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now