Hi All,
My question: Clicking at area out of the UltraGrid such as windows forms, the white area in the UltraGrid both will not trigger the BeforeExitEditMode event.
Once you run the sample application, you will see the UltraGrid display with a column named "Counter".
When I delete\modify one of the cell's data, it will not trigger the BeforeExitEditMode event until I clicked on the UltraGrid's header or other cells.
How can I forced it to trigger the BeforeExitEditMode event when I click at area out of UltraGrid such as windows forms, the white area in the UltraGrid?
Note: I am using V2009.2
try this:
bool exitEditMode = true;
private void Form1_MouseClick(object sender, MouseEventArgs e)
{
ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.ExitEditMode);
}
private void ultraGrid1_Click(object sender, EventArgs e)
if (exitEditMode)
exitEditMode = true;
private void ultraGrid1_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
exitEditMode = false;