This is a migrated thread and some comments may be shown as answers.

insert/update data into multiple tables using radgrid update command

1 Answer 202 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 23 Sep 2010, 07:24 PM
I'm using the RadGrid automatic insert/update/delete functionality.  What I'm tyring to do is insert data into multiple tables  Example: I click on Add new record to add new data to table #1 (this is working fine).  I then would like to capture some of the data just entered after clicking the insert button and automatically insert this data into table #2.  How can this be done?

Thanks for any help that can be provided.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Sep 2010, 01:54 PM
Hi Robert,


One suggestion is extracting the insertform values and executing seperate query to update the second table, in the InsertCommand event of grid.

You will get and idea of how to get the insertform values by going through the following link.
Inserting values using UserControl/FormTemplate
Inserting values in-place and EditForms
Retrieving original values for edited item


-Shinu.
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or