How to programmatically add data to a winforms hierarchical Infragistics UltraWinGrid
Posted on 2013-01-24
I am able to add a record to the top band using
grid.DisplayLayout.Bands.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?