1. 程式人生 > >WinFrom DataGridView 常用事件執行順序

WinFrom DataGridView 常用事件執行順序

When moving from cell to cell (in the same row) you get:

1) Cell Leave (old cell)

2) Cell Validating/ed (old cell)
3) Cell Enter (new cell)

When moving from one row to another you get:
1) Cell Leave (old cell), Row leave (old row)
2) Cell Validating/ed (old cell)
3) Row Validating/ed (old row)
4) Row Enter (new row)
5) Cell Enter (new cell)