I am struggling to find out the row expanding event i.e. a user click at (+) sihgn to write some custom logic. I tried looking for AfterRowExpanded event but strangely it is not available to me. Am iI doing something wrong.
Also does ultrarow has something so that I can configure ultragrid.DisplayLayout.Override.AllowAddNew property at the ultrarow or childrow level. The propertyultragrid.DisplayLayout.Override.AllowAddNew is set at the grid level. I want to configure it at the click of (+) button at row level. Please advise.
Hello Nipun,
What is your version?
The 'AllowAddNew' could be set on a band level, like this:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
e.Layout.Bands[0].Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.FixedAddRowOnBottom;
e.Layout.Bands[1].Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.No;
}
Hi Boris,
Thanks for the response. We are using version 10.1 . My requirement is to runtime evaluate the childrows at the click event of (+) button and based on the condition override the "AllowAddNew" property at the childrow level which is already set once at the band level as suggested by you also.
Thanks,
Nipun