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
140
AllowAddNew - behavior in bands (2 bands in grid)
posted

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 

 

 

 

  • 469350
    Verified Answer
    Offline posted

    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.