A two level grid TOP and MIDDLE
I am binding manually, all works fine. Except that I want to have the Child Grids'a ADD Row ( ParentKey ) already filled in with the ParentRow's ParentKEY.
I thought I could use the RowsIslandsPopulated event for this, but I am not sure how to get the value into the ADD Row Row which appears at the bottom ?
Thanks
Hello Soberly,
You are on the right way to achieve this.
This can be done using RowIslandsPopulated event by the following way :
protected void WebHierarchicalDataGrid1_RowIslandsPopulated(object sender, Infragistics.Web.UI.GridControls.ContainerRowEventArgs e)
{
ContainerGrid childGrid = this.WebHierarchicalDataGrid1.GridView.Rows.FromKey(e.Row.DataKey).RowIslands[0];
object[] parentKey = childGrid.ParentRow.DataKey;
GridRecord addRow = childGrid.Behaviors.EditingCore.Behaviors.RowAdding.Row;
// I want to fill the second cell with the ParentKey
addRow.Items[1].Text = parentKey[0].ToString();
}
For more information regarding accessing row islands or parent rows (both server or client side) please
refer to the online documentation:
http://help.infragistics.com/NetAdvantage/ASPNET/2010.2?page=WebHierarchicalDataGrid_Hierarchical_View.html
Let me know if you need further assistance.
this link no longer works:
But this link does
http://help.infragistics.com/NetAdvantage/ASPNET/2012.2?page=WebHierarchicalDataGrid_Hierarchical_View.html