Answer the question
In order to leave comments, you need to log in
How to track activities when working with datagridview c#?
Good afternoon, I am writing the visual part of a program that works with a PostgreSQL database. When you select a table in the "Select a table:" list, its value is displayed in the datagridview. And in order not to make a field where it will be possible to enter SQL queries such as INSERT, UPDATE, DELETE, how can all this be implemented using only a datagridview. Suppose, to change some value, you need to double-click on the desired cell and change it, but how to count this change? Or selected a line, pressed delete and it was deleted from the datagridview and the database is not deleted now either there or there.
Answer the question
In order to leave comments, you need to log in
List . For example CellValueChanged , an event that fires when the value of a cell changes.
See what events your grid and its cells have. Choose the ones you want and use them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question