Hi!
Sorry, I left AllowNew and EnableHierarchicalBinding as default, i tryed set EnableHierarchicalBindind as false, but make no difference. The grid is setted to allow new row (of course).
A doubt, in what level/collection should I set it?
Code:
1 XCollection x = new XCollection();
2 x.Query.Load();
3
4 if (x.YCollectionByPK.Count == 0)
5 entity = x.YCollectionByPK.AddNew(); // then the issue occurs
6 else
7 entity = x.YCollectionByPK[0]; // not occurs the issue, works perfect
8
9 entity.ZColectionByPK.AllowNew = true;
10 entity.ZColectionByPK.EnableHierarchicalBinding = false;
11
12 this.bindingSource1.DataSource = entity.ZColectionByPK;
13
14 ultraGrid1.DataSource = bindingSource1;
This is an complex form of my app, where I can add new at XCollection, YCollection and ZCollection, and I cant save at middle.
Welliton Toledo