Bind DataGrid CheckBox to SQL Data Base C#

Опубликовано: 16 Июль 2026
на канале: Horea Trîncă
42,144
37

This is how you can bind a CheckBox column to a sql data base, using Visual Studio in design mode.
Using a stored procedure, we can also UPDATE the database .In this case the stored procedure does an insert or a delete on the 'carti_autori' table, based on the 'exista' parameter. The stored procedure is not shown on purpose, for this is the student's job:)

The same thing can be achieved by code, but I think this visual approach better explains the logic behind this idea.