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
215
AddRowTemplate for adding rows
posted

Hi, 

I know that we can add a new row to grid in-line by clicking on the button "Add...". But I want to have the detail add row feature where a separate small window pops up, like the UltraGirdRowEditTemplate. Or can I use the same for adding new rows? If yes, please can you provide me a sample code?

Thanks,

Suneela

Parents
No Data
Reply
  • 37774
    posted

    Suneela,

    You should be able to use the AfterRowInsert event for this, such as:

     private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
    {
        e.Layout.Bands[0].RowEditTemplate = this.ultraGridRowEditTemplate1;
    }

    -Matt

Children