udbk

How to insert row into related table

Discussion created by udbk on Sep 14, 2010
Latest reply on Sep 21, 2010 by udbk
Hi,
I wanted to insert rows into related table while creating feature. Iam doing this using Class Extension (IObjectClass Oncreate event). Iam able to get related tables of current feature class. but Iam not able to insert row into related tables while inserting records into related table Iam getting 'Objects in this class cannot be updaed outside an edit session'.

Iam trying to insert row into related table using below code

IRow pRow = PTable.CreateRow();
pRow.set_Value(1,10);
pRow.Store();

can anybody help me how to solve this issue.

Thanks,
Uday

Outcomes