U
U
Username2015-11-13 00:15:54
PostgreSQL
Username, 2015-11-13 00:15:54

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.
4bc9b58eaf1a485d9defb23f1d0dbfb6.png4af3ae2272aa48ea989593c589399dcf.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Grudinkin, 2015-11-14
@dalv_happy

List . For example CellValueChanged , an event that fires when the value of a cell changes.

K
Konstantin Nagibovich, 2015-11-13
@nki

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 question

Ask a Question

731 491 924 answers to any question