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
170
New Row
posted
we use

.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!

Parents
  • 469350
    Verified Answer
    Offline posted

    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;
                }            
            }

Reply Children
No Data