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!
Ah ha! That was it, the band was adding it.
Thank you so much!
Oh... I thought of one other thing to check. You might be setting the AllowAddNew property on the band, and that would override the DisplayLayout settings. So check for band.Override.AllowAddNew, also.
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.