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
1125
Edit row directly and using RowEditTemplate at same time
posted

When using a row edit template is there any way to also still be able to edit the row directly?  

We want to put just the Notes field in the row edit template, with the rest of the fields still edited directly in the row.

I was sure I'd achieved this behavior in the past, but I can't work out how to do it now.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Tom,

    I imagine you could do this by setting the RowEditTemplateUIType to None on the grid so that the RowEditTemplate never displays automatically. The manually show the RowEditTemplate when you want - like when the user enters the Notes cell.

    Something like this:


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridOverride ov = layout.Override;
                ov.RowEditTemplateUIType = RowEditTemplateUIType.None;
            }

            private void ultraGrid1_AfterCellActivate(object sender, EventArgs e)
            {
                UltraGridCell cell = this.ultraGrid1.ActiveCell;
                if (null != cell &&
                    cell.Column.Key == "Column 3")
                {
                    cell.Row.ShowEditTemplate();
                }
            }

Children