protected void WebHierarchicalDataGrid1_RowIslandsPopulating(object sender, ContainerRowCancelEventArgs e)
{
//Cancel the default automatic load on demand operation
e.Cancel = true;
// Get the data key
int key = (int)e.Row.DataKey[0];
_itemClass.MyItemReqId = key;
var first = _itemClass.MyItemReqDetailQByItemReqIdRead();
// Create Container Grid
ContainerGrid childGrid = new ContainerGrid();
e.Row.RowIslands.Add(childGrid);
// Bind Grid
childGrid.DataSource = first;
childGrid.DataBind();
//-------------------------------------------//
_itemClass.MyItemReqDetailId = //HOW TO GET KEY From first ?
var second = _itemClass.MyErploctransByItemReqDetailIdRead();
ContainerGrid child1 = new ContainerGrid();
child1.InitializeRow += Child1_InitializeeRow;
e.Row.RowIslands[0].Rows[0].RowIslands.Add(child1);
child1.DataSource = second;
child1.DataBind();
}
Now i am stack to the next step getting the key on the Child and use it to load the child detail band.
Thanks in Regards
Got the Answer from this http://blogs.infragistics.com/forums/t/42316.aspx
Have you tried to use Manual On Load Demand on WebHierarchicalDataGrid?
My WHDG has 3 layers
Parent >
Child>
>Child Detail
Using Manual On Load Demand I have populated The child when parent Rows was selected , it works by selecting the key from parent.
Now i got a problem in loading the next layer which is the child detail.
Take a look at this link: http://community.infragistics.com/forums/t/47016.aspx
Basically they suggest using the following:<ig:WebDataGrid EnableDataViewState="True" EnableViewState="True">
I added it in the WHDG and now it allows me to delete but the control does not update correctly after that...
Hi Anyone here..