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.

Parents
No Data
Reply
  • 53790
    Suggested Answer
    posted

    Hi,

    I`m not sure that I understand your scenario, but I try to reproduce it in a small sample. Could you please take a look at the attached sample for more details and let me know if you think that I misunderstood your question. Please feel free to modify my sample and revert it back to me. I`ll be gald to research it

    Regards

    UltraGridWithThreeBandsAddRows.zip
Children