Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem && e.Item.OwnerTableView.Name ==
"DetailTableName"
)
GridDataItem childItem = e.Item
as
GridDataItem;
int
childIndex = childItem.ItemIndex;
//Detail table index
GridDataItem parentItem =(e.Item.OwnerTableView.ParentItem)
parentIndex = parentItem.ItemIndex;
//Parent table index
}