Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
AllowAddNew only for last row of Band[1].
posted

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

 

  • 469350
    Offline posted

    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.