Solved

Updating a gridview from different sources

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

726 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