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
130
Can't remove add template row
posted

Hello!

I have an Ultragrid that I can't seem to remove the blank template row from. I'm revisiting code that was written a while back, so I imagine (hoping) there's some additional setting I'm overlooking.

So far I have set

DisplayLayout.Override.AllowAddNew = No

as well as setting "Allow Row Adding" to "Don't Allow" in the feature picker.

My datasource is a generic List and when I debug it I do not see an additional empty result line.

Is there somewhere else this could be set? I've attached a picture of my grid.

Thanks!

Parents
  • 469350
    Offline posted

    Hi,

    My best guess is that whatever code you added is being called before some other code in your application which is turning the TemplateAddRow back on.

    Check your code to make sure you are not setting AllowAddNew anywhere else.

    It's also possible that your application is setting this property by loading a layout. So look for places in your code where you might be calling one of the Load methods on the grid.DisplayLayout.

Reply Children