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
2715
Can "Add New Row" be assigned to a child band ?
posted

Let's say you have a grid that holds users and users actions. If you click a user, you get the user's actions. Could this user actions band hold a "add new row " empty row ?

thanks,

Marius.

Parents
  • 469350
    Offline posted

    Hi Marius,

    Sure, you just use the AllowAddNew property on the Override object.

    Assuming your data is in a hierarchy with users as the parent rows an user actions as the child rows, you could turn on the TemplateAddRow for just the child rows like so:


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                e.Layout.Bands["User Actions"].Override.AllowAddNew = AllowAddNew.TemplateOnBottom;           
            }

     

Reply Children