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
2430
I don't know how to get add a row to Band[0]
posted
Normally, I get an row add at bottom:
this.taskGrid.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnBottom;
I have the following - didn't do this for any other band but couldn't get a new row
e.Layout.Bands[0].Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.Yes;
The data schema as far as I know allows for row additions on all bands (aka there is an Insert Command under Band[0]s TableAdapter.

Not sure what I need to do to get this fundamental feature working.
Using the default template (no RowEditTemplates)
Parents
No Data
Reply
  • 21795
    Verified Answer
    Offline posted

    Hello Dale,

    Thank you for posting in our forum.

    You are on the right way. By setting AllowAddNew property of the DisplayLayout’s Override to TemplateOnBottom you should be able to add new rows to each band of the grid via template row at the bottom of the band. However if you specifically set the same property to any of the grid’s band Override to Yes the template row for this specific band will not be shown. This will only allow the end users to add rows to the grid by means provided by the developer. So, if you need to allow end users to add rows via template row at the bottom of each band set AllowAddNew at the DisplayLayout level and do not specify it at any band level. Please check the attached sample for your reference how you can set this property.  Check also the following link where you may find more information about AllowAddNew enumeration http://help.infragistics.com/Help/Doc/WinForms/2015.2/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.2~Infragistics.Win.UltraWinGrid.AllowAddNew.html.

    Please let me know if you need any additional information.

    Thank you for using Infragistics Controls.

    CAS-171339-Z7Q9B1.zip
Children