Button clicked event doesn't fire if datagrid sorted

stuart

Newcomer
Joined
Nov 4, 2003
Messages
3
Location
Sydney
I have a form that has a datagrid and an update button. The update button belongs to an inherited form. The clicked event of the update button updates any changes in the datagrid to the database.

If I open the form, add a new row in the datagrid and then, without leaving the new row, click the update button the update performs as expected.

However, if I open the form, sort the datagrid - by clicking in a column header - add a new row and, without leaving the new row, click the update button it doesn't do the update. The new row is moved to a new position according to the sort but the clicked event on the button doesn't fire!

This problem only occurs if I sort the datagrid.

Any ideas why the clicked event on the button doesn't fire when I click on it? Your help is appreciated.
 
Back
Top