DataGridView - How to connect to a cell change event?

I am using DataGridView with C # .NET. When a user edits a column, I need another column in the same grid that needs to be changed with every keystroke / change. How / where can I insert my own code for this type of event?

+3
source share
1 answer

What you are trying to achieve is impossible without any work. By default, the class DataGridViewdoes not provide a style event CellChanging. Instead, it provides book completion events in the form of CellBeginEditand CellEndEdit.

, , , . CellChanging , , , Button.

, , .

, , -

  • , DataGridView.EditingControl

, , , DataGridView , .

+1

Source: https://habr.com/ru/post/1730083/


All Articles