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
361
Problems editing a Band 1 cell
posted

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.

 

 

 

Parents Reply Children
No Data