Questions tagged [datagridviewcheckboxcell]
142 questions
1
vote
1 answer
unbound checkbox column value gets cleared when changing rows/columns
I have a datagridview with columns bind to a dataset. One of the columns is a checkbox column which is unbound.
I'm using cellPushed event to identify any changes being made to the checkbox and that works.
My problem is that I can check the checkbox…

amirm
- 41
- 1
- 11
1
vote
4 answers
How to know a specific checkbox inside datagridview is checked or not?
i had a gridview which has 2 columns , one is textbox column and other is checkbox column, how to know which checkbox is checked .
As shown in image ,suppose any of the checkbox is checked , i want to display that the corresponding text box value…

Deadlock
- 330
- 1
- 3
- 21
1
vote
2 answers
C# DataBound DataGridView with extra column - changes in this column are lost upon sort?
I use a DataGridView which is data-bound over a binding source. Additionally I create one CheckBoxCol on the very left for the user. Checking boxes in there and then re-sorting makes all checks disappear. Has anyone an idea how to avoid that?
Here's…

ray
- 149
- 1
- 4
- 18
1
vote
0 answers
VB.NET DataGridViewCheckBoxCell Checked value
I want to get the value from a DataGridViewCheckBoxCell
i have tried various codes
DataGridView1.Item(1, i).Value = False Then
also
DataGridView1.rows(i).cells(1).Value = False Then
also using ctype and cbool and convert.boolean... When i got into…

Shraavan Acharya
- 23
- 1
- 7
1
vote
0 answers
C# winforms 4.0 datagridview multiselect checkboxes
Multiselection DataGridView and checkbox column inside it. I would like to allow a user check/uncheck all selected rows at time, but when one checkbox is checked selection moves to this row (and other rows becomes unselected).
Q: Is any way to…

user861768
- 175
- 1
- 12
1
vote
1 answer
Filter on Datagridview
I am working on Datagridview filtering according to checkbox(yes/no) which is in access database.
my code ---------------------------------------
{
OleDbConnection baglanti = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data…

burakim
- 472
- 1
- 4
- 20
1
vote
1 answer
Datagridview with Checkbox column dont keep unchecked value C#
I have a Winform with a datagridview on it, this datagridview has a checkbox column.
I fill the datagridview with data fron a datatable and it does perfectly right, and the checkbox column turns checked with the values from the datatable that…

Gustavo Montaño
- 11
- 2
1
vote
1 answer
How can i pass or keep my cheched checkbox when the page is changed in gridview?
I have a gridview it includes checkboxes. When i click them it goes to SelectedRss_Click function and I can keep the data thanks to it. However, when i change tha page of gridview, the checked checkboxes are unchecked. How can i solve this…

leventkalay92
- 573
- 3
- 11
- 28
0
votes
1 answer
Unbound DataGridViewCheckBoxCell set value
I have a problem. My code contains DataGridView and UnBound CheckBoxColumn.
My dialog should be for choose rooms from list.
For second time you want to see what are you chose in first time.
Code:
ChooseGroupRoomDialog.cs
using System;
using…
user1134316
0
votes
2 answers
Datagrid checkbox column select not working right
I want to have a column with checkboxes that when ever the user clicks them, they select their own row (hightlight it). I have come up with this code, with does not do the job, how can I fix it?
Is there a better way of doing this? (The row stays…

funerr
- 7,212
- 14
- 81
- 129
0
votes
1 answer
vb.net How do I stop DataGridView from displaying the state of a checkbox (True/False) during a mouseover event
I use DataGridView with a CheckBox column and when cursor hovers over a checkbox at runtime the checkboxes display what is similar to a tooltip that says either True or False depending on the state of the checkbox and I don't want that. How do I…

Jeff Coufal
- 9
- 2
0
votes
0 answers
Setting a DataGridViewCheckBoxCell value to false doesn't uncheck the checkbox in the DataGridView
My DataGridView is set up as a table with 3 columns, [INSPECTED]Checkbox, [SHIPPED]Checkbox, and [SERIAL #], which isn't relevant to this question. I have it set up so in order to have SHIPPED checked off, INSPECTED must be checked of as well, and…

xingtianma
- 1
- 1
0
votes
1 answer
How to restrict users to check only a single checkbox in a DataGridView
How can implement such a constraint?
Please guide
Thanks
Public Class Form4
Public Function ConvertToList(Of T)(ByVal dt As DataTable) As List(Of T)
Dim columnNames = dt.Columns.Cast(Of DataColumn)().Select(Function(c)…

roy
- 693
- 2
- 11
0
votes
1 answer
How would one get a DataGridViewCheckBoxColumn to show DataRelation status?
Say I have a DataGridView (named dataGridView) that is displaying a Strongly Typed DataTable (named ChildDataTable).
dataGridView has a DataGridViewCheckBoxColumn (named parentIDColumn) that is bound to a Field Property ParentID on each ChildDataRow…

el2iot2
- 6,428
- 7
- 38
- 51
0
votes
3 answers
Compare the cell values of the selected checkboxes in DataGridView
I have a DataGridView and Checkbox column attached to it. I would like to achieve something like this, when a few checkboxes are selected, it will compare the cells value of column named Description between those selected row. If the values are not…

Charly
- 123
- 1
- 2
- 11