2
Answers

How to display a datagridview column in checkbox

ma ouml

ma ouml

8y
258
1
good evening friends
I have a problem I want to click on a row in datagrid view and display the content in textbox combobox datetime picker as well as checkbox but the problem is I have a box that contains two values ​​be N N is O If I mean Check the checkbox = O otherwise = N
I do not know is what I described well my problem I hope that someone understands me
Here is my script and my interface
thank you in advance
Answers (2)
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