Hi,
I have created a WebHierarchialDataGrid with a child band. Both the AutoGenerateColumns and AutoGenerateBands are false.
The Markup code for the child band is as follows:
<
<ig:Band AutoGenerateColumns="false" Width="400px" DataKeyFields="intRowID,intEOL_ItemID">
<Columns>
<ig:BoundDataField DataFieldName="intEOL_ItemID" Key="intEOL_ItemID" Width="0%" Hidden="true">
<Header Text="EOL Item Id" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="intRowID" Key="intRowID" Header-Text="Row ID" Width="0%" Hidden="true"></ig:BoundDataField>
<ig:BoundDataField DataFieldName="intProductID" Key="intProductID" Width="0%" Header-Text="Product ID" Hidden="true"></ig:BoundDataField>
<ig:BoundDataField DataFieldName="vchProductPartNumber" Key="vchProductPartNumber" Header-Text="Product"></ig:BoundDataField>
</Columns>
<Behaviors>
<ig:EditingCore EnableInheritance="true">
<ig:RowAdding Alignment="Bottom" EnableInheritance="true">
</ig:RowAdding>
</Behaviors>
</ig:EditingCore>
</ig:Band>
</Bands>
I am facing the following error while expanding the parent row:
Is there any other way to enable the 'RowAdding' feature for the child band ?
Hi tct_rani1106,
It has been some time since your post, however in case you still need assistance I would be glad to help.
You need to specify the DataMember from your datasource for your child band. You can find a detailed tutorial for binding WHDG at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebHierarchicalDataGrid_Data_Binding.html
Additional information detailing how RowAdding can be enable for WHDG can be found at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebHierarchicalDataGrid_Enabling_Row_Adding.html
Please feel free to contact me if you have any questions.