.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnBottom;
However, unless the user actually types something into one of the grid cells (or makes a selection), the row does not seem to exist. For example, we default cell values during InitializeRow when the user clicks in the row. If they click away without typing anything, the contents of the row mysteriously disappear. I tried UpdateData() to try to commit the changes, but to no avail. Does anyone have insight into this issue? Thanks!
Hi,
It's a real row once it becomes active, but the grid specifically tries not to commit the row unless it's modified by the user.
Try this:
private void ultraGrid1_AfterRowActivate(object sender, EventArgs e) { UltraGrid grid = sender as UltraGrid; if (grid.ActiveRow.IsUnmodifiedTemplateAddRow) { grid.Rows.AddRowModifiedByUser = true; } }
Thanks! This works great.