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.
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
It looks like this is what I need but I can't download the zip file. It fails to unzip - says no files to extract (17 kB file). Can you repost...