In my grid, If I edit a cell, then click on another cell, the AfterRowUpdate event fires as I would expect. But if I edit a cell, then click a close button, the AfterRowUpdate event does not fire. How could I get the close button to do the same thing as clicking on another cell.
For example, if I change the text in cell A2 and then click on cell B2, then click my close button the AfterRowUpdate event fires and asks if I want to save changes. But if I change the text in cell A2 and then immediately click the close button the AfterRowUpdate event does not fire and my changes aren't saved.
Thanks,
Rich
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
ultraGrid1.UpdateData();
}
You can even use grid Leave Event..
Private Sub UltraGrid_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles UltraGrid.Leave
UltraGrid.UpdateData()
End Sub
Regards,
Janani,
Software Engineer,
Hirotec India Ltd.
grid leave event wont work it you close the form using the x button :)