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
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
Thanks for the reply Matt!
But actually I did'nt get you. You said, I have to use AfterRowInsert, but the code snippet is having InitializeLayout event. And then, you are just adding the EditTemplate to the grid, but how can it act as an AddRow template?