I am trying to do something like the Hierarchy Template demo,
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx
In the inner multi-tab views, I'd like to have Insert/Update/Delete than just viewing. When I followed the example to save the 'parent' primary key (ID) into a label control, it turned out that Delete/Update work, but to add a new record will trigger a key conflict error in SQL. I used SQL Profiler to trace it and found that the sql statement has '0' for the ID field (it's an identity field).
Please help.
and also, why that example uses label control to save the parent primary key, instead of using ParentTableRelation?
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx
In the inner multi-tab views, I'd like to have Insert/Update/Delete than just viewing. When I followed the example to save the 'parent' primary key (ID) into a label control, it turned out that Delete/Update work, but to add a new record will trigger a key conflict error in SQL. I used SQL Profiler to trace it and found that the sql statement has '0' for the ID field (it's an identity field).
Please help.
and also, why that example uses label control to save the parent primary key, instead of using ParentTableRelation?