ASP Gridview Updating Two Tables

Joined
Mar 16, 2009
Messages
1
Reaction score
0
Hey everyone this is a problem that no one has been able to give me an answer too, any help would be appreciated

I have an a gridview which is displaying an accessdatasource table called "Test"

on another page i have a another gridview which is displaying a table called "Scores"

How can I updated a value on the "Test" table when a user goes into the edit-update mode an tries to update a value for the "Scores"


So far I have my update command sql string as follows:

Update [Test], [Scores] Set SET [Test].[Name]=@Name, [Test].[Total] = @Total, [Scores].[Total2] = [Test].[Total] WHERE [Test].[ID]=@ID And [Test].[ID] = [Scores].[ID]">

This works but the problem is I have to go into edit mode twice and update before [Scores] see's any change, the table [Test] sees a change and gets updated immediately. THANKS!

I have tried two update statements, but it won't let me,
I have tried store procedures, but being an acess database it won't let me

I'm wondering if i can overite the update functions OnRowUpdating, OnRowUpdated somehow to simply do twice the updates, that would solve my problem. I am programming in C#
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top