Hi,
I have a grid bound to a DataSet, having 2 tables. Thus the parent table appears as Band 0 and the child table as Band 1.
The Grid constantly receives updates. causing certain rows to be redrawn
Editing the Band 0 grid works fine.
When I try to edit a cell in Band 1, it loses focus when a row update comes in at that level. As a result, the cell doesnt remain in edit mode for too long. How can i prevent this?
When an update comes in, I just update the values in the underlying datatable.
I tried adding this in the grid_InitializeRow event
grid.DisplayLayout.Override.SelectTypeRow = SelectType.None;
but this did nothing.
I also added an event handler:
void grid_BeforeRowDeactivate(object sender, CancelEventArgs e)
{
UltraGrid grid = sender as UltraGrid;
if (grid != null)
if ( grid.ActiveCell != null)
if ( grid.ActiveCell.IsInEditMode)
e.Cancel = true;
}
Even this does not work.
What can i do to retain editor focus in Band 1?
Im using Infragistics 8.1 UltraWinGrid, with all the recent fixes.
I don't believe that what you are trying to do here is possible. If the grid is receiving constant update notifications from the data source, then the users will not be able to edit. Frankly, I don't see how this could be working for the root-level, rows, either. Maybe it has something to do what what's being updated.
My advice would be to give the user some other way to edit a row - external to the grid and not bound.
"Frankly, I don't see how this could be working for the root-level, rows, either. Maybe it has something to do what what's being updated."
Well, this is happening at the root level. And the type of updates are exactly the same i.e. [The Band 1 table data is also implemented as a Band 0 table in another grid in the same application. There are 2 cells which can be edited by the user ... this works when i implement this as a Band 0 grid , but not as a Band 1 grid].
There has to be a way to make this work for Band1 since this is happening at Band0. If not, then can you explain why this works for Band 0 , and i could work towards a similar solution for Band1. Thanks.
I disabled the server side updates to the band 1 grid, when in edit mode, and the problem's solved.
Im still curious as to why this works fine in Band 0 but not band 1