I am trying to accomplish this in the grid that has 2 bands - parent child grid.
when you first come into the grid, the "Click her to add new" text on top is displayed and works fine. I was able to trap the event when the row was added (afterrowupdate) event and turned off the allowadd new - as I don't want the parent "click to add new.."text to be displayed.
what I wanted to do is keep the "Click her to add new" text in the child band, but I see that turning off AllowaddNew turns it off for all bands.
Is there a way to show/hide this text based on bands? So one could be turned off, but the child would be on?
Hopefully this makes sense. Thanks
Hi,
The AllowAddNew property is on the Override. This means that you can set it on different levels. If you are setting it on the grid.Displaylayout.Override, then you are setting it for the whole grid. If you set in on the Override of the Band, then it only aplies to that band. So what yuo want to do here turn off AllowAddNew on the DisplayLayout.Override (or just leave it set to default) and turn on AllowAddNew on the child band's Override.