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
2430
Probably simple but how do you disable or hide the New Row?
posted

I have 10 bands in my grid and can disable a band's row Add with

layout.Bands[OBJECT_TYPE].Override.AllowAddNew =

AllowAddNew.No;

I however don't want to disable it for the band but a given row

aka, I want to do the following:

ActiveRow.ChildBands.AllowAddNew = AllowAddNew.No;

aka, I want to disable all the ability to add new under certain parent rows based on the data of the parent row.  I tried disabling the row via:

foreach(UltraGridRow row in ActiveRow.Rows)

{

       row.Activation = Activation.NoEdit;

}

but the New Row is not in the row collection so that didn't work.  Alternatively I could do row.Hidden but can't get to the row to hide.