3
Answers

saving data from datagridview when row is filled

Dozd

Dozd

14y
8.4k
1

Hi, I have DataGridView control (with binding data).When user add new row and fill it,  their is button that allows  to save data from row to database. I do not want my program to work in that way. I want new record to be saved after user fill current  row.
thanks
Answers (3)
0
ma ouml

ma ouml

NA 433 17.4k 8y
I do not know I have a column in the table "marche" named flag fence the last one will be filled if the checkbox "and last" and tick or not if it is ticked we will store O otherwise we will store N
I want when I display in the datagridview and select on one line the selected data will be placed before this property except the flag fence when it has the value O the checkbox will not check I do not know why
I hope that I have described
 
 
0
Bryian Tan

Bryian Tan

NA 9.4k 887.3k 8y
Did you meant to say how to display checkbox in the DataGridView control?
 
If that the case, here is an example:
https://www.aspsnippets.com/Articles/Add-CheckBox-Column-to-DataGridView-in-Windows-Forms-application-using-C-and-VBNet.aspx