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

Inserting into Details Table and grab ID from Parent Table ID

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carina
Top achievements
Rank 1
Carina asked on 11 Apr 2013, 06:00 PM
Hi,

I have a main grid with two hierarchical levels, the main level, and the child level. I am trying to insert record on the main level, and then once I have that record inserted, be able to insert a record onto the child record of that record, but insert it using the same ID as the main record. I already looked at this demo, http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultvb.aspx,
 and it is from where I am getting my bases from, but I am having difficulty when trying to insert a record onto the child level. I am using DatabaseAccessors not SQL connection strings or SQL Commands, I am working in vb.net. I am not sure how to save the fields being inputted, or if there is a way to treat the insert commands for the child table the same as the main table. 

1 Answer, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 11 Apr 2013, 07:08 PM
Tags
Grid
Asked by
Carina
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Share this question
or