Hello All,
The attached sample demonstrates how to populate multiple band using manual load on demand. Due to size restriction ig_res folder is removed. You may add this at your end.
Hope this helps.
Thanks,
Bhadresh
Hi Sir Can you send me an example how to use multiple band on load demand in c# .
In My Code I need to populate third level of my WHDG.
protected void WebHierarchicalDataGrid_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(); //Datatable
// Create Container Grid
ContainerGrid childGrid = new ContainerGrid();
childGrid.InitializeRow += Child_InitializeeRow;
e.Row.RowIslands.Add(childGrid);
// Bind Grid
childGrid.DataSource = first;
childGrid.DataBind();
///---------------------------------------------------------------------------------------------------------
IN this area i need to get the key from the firstchild i used to follow your example in vb but i always get an error.
_itemClass.MyItemReqDetailId = (int)e.Row.RowIslands[0].Rows[0].DataKey[0];
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();
}