Hi, there:
I am using Infragistics UltraGrid v6.2.2. Inside grid_InitializeRow event handler I have the following line which causes the InitializeRow method called recursively.
UltraGridState s = m_grid.CurrentState;
Eventually, I got stack over flow exception. Can anybody tell me why?
I originally tried to color the cells and force the cells out of edit mode if the cells are in edit mode. The code is as the following:
private void m_grid_InitializeRow(object sender_, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e_)
colorRow(e_.Row);
{
}
This method throws stack over flow exception when I have a lot of rows in the grid. I found out the fault party is: m_grid.CurrentState
Any help is appreciated.
Hi,
Can you explain what you are trying to do here? Whatever it is, I'm pretty sure you are not going about it the right way. It does not make any sense to try to take exit edit mode inside the InitializeRow event.
Hi, Mike:
Thank you very much for the replay.
The reason I am taking exit mode inside IntitializeRow is I have another thread updating the datasource. If a cell is in edit mode the updated data will not be displayed in the cell. Only after the cell existing edit mode the new data will be displayed. I could not find a better place to do it. Could you please tell me the right place to do it?