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.
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(); } }
Thanks Mike.
The issue there is that when the row editor is displayed the cells in the row itself are then read-only. We want to be able to edit the data in the row and the row edit template simultaneously. We want the row editor to display when the row is activated, but to use the row editor as an overflow area for just the longer fields that can't be as easily edited in the grid.