How to programmatically add data to a winforms hierarchical Infragistics UltraWinGrid

I am able to add a record to the top band using

grid.DisplayLayout.Bands[0].AddNew();But when I create this record, I need to also add some child records at band 1. How do I do that? I am getting an error:

Unable to add a row:Row insertion not suported by this datasource.

This is my code:

 grid.DataSource = this.ultraDataSource2;
 this.ultraDataSource2.Band.AllowAdd = Infragistics.Win.DefaultableBoolean.True;What setting has to be changed to allow addition of child records also when a parent record is added?
rishaanAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DarrenDConnect With a Mentor Commented:
0
All Courses

From novice to tech pro — start learning today.