Hi,
I want an ID of parent Table and the datakey value of recently expanded column on child grid's need data source event. My code returns null value for currentGrid.NamingContainer .
void childRadGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
try
{
RadGrid currentGrid = sender as RadGrid;
GridDataItem parentItem = (currentGrid.NamingContainer as GridNestedViewItem ).ParentItem as GridDataItem;
..
..
..
}
Any idea?
Thanks
Prava
I want an ID of parent Table and the datakey value of recently expanded column on child grid's need data source event. My code returns null value for currentGrid.NamingContainer .
void childRadGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
try
{
RadGrid currentGrid = sender as RadGrid;
GridDataItem parentItem = (currentGrid.NamingContainer as GridNestedViewItem ).ParentItem as GridDataItem;
..
..
..
}
Any idea?
Thanks
Prava