I am using a winGrid with 2 bands. I want that rows can only be added after the last displayed row of band 1.
Example
Band[0] row A
band[1] row B
band[1] row C
band[0] row D
band[1] row E
Rows may only be added after row E, not after row C.
None of the properties grd.DisplayLayout.Bands[1].Override.AllowAddNew gives a solution.
Any idea?
With kind regards,
Luc
Hi Luc,
So you want to have an AddNewRow under E, but not C? How are you determining which islands should and should not have an AddNew Row?
There's no way to do this in the grid. AllowAddNew applies to the entire band. I think you might be able to limit the number of rows added to each island using the MaxRows properties on the band. But if you have more complex criteria for limiting the AddNewRow, then I don't see any easy way to do that.