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
135
Hide add new button on Band 0 but show on Band 1
posted

I have a grid where I would like to have an add button for the child rows on Band 1 but not have one for the parent record (Band (0)).  I have added the code below:


UG1.DisplayLayout.Bands(0).AllowAdd = Infragistics.WebUI.UltraWebGrid.AllowAddNew.No

UG1.DisplayLayout.Bands(0).AddButtonCaption = ""

UG1.DisplayLayout.Bands(1).AllowAdd = Infragistics.WebUI.UltraWebGrid.AllowAddNew.Yes

UG1.DisplayLayout.Bands(1).AddButtonCaption = ""

 

The problem is that the first button still appears but inactive.  How do I not show it at all?