Questions tagged [datagridviewcheckboxcell]
142 questions
0
votes
0 answers
Get selected students which checked in DataGridView
class Student
{
public Id {get;set;}
public Name {get;set;}
}
List studentList = new List{st1,st2,st3,st4,st5};
DataGridView dgvStudentName:
(Check) Id Name
true S01 Andrea
false S02 …

Shai Nguyễn
- 85
- 1
- 7
0
votes
3 answers
How to know if the Check box is checked
In a data grid view I need to loop on the rows and get the rows that contain a checked checkbox
dgv.rows[i].cells[0].value is returning empty in the both cases
all this is happening on the event CellContentClick

Mario
- 167
- 1
- 6
- 17
0
votes
2 answers
Convert a cell type to DataGridViewCheckBoxCell using c# and bound it to a value
I am assigning datatable to a datagridview using datasource , i would like to make the column active looks like a checkbox
Ex : if column active equal 0 the checkbox should be unchecked , and the opposite
can someone help ?

Hza Developer
- 13
- 1
- 4
0
votes
0 answers
in TabControl Datagridview's DatagridViewCheckboxColumn doesnt refresh after calling method which is check all checkboxcells
I have one datagridview. In each tabpages, there are datagridview. Every datagridview has a one datagridviewcheckboxcolumn. I want to it which, the form when is loading, every datagridviewcheckboxcell are selected. But datagridviews are not…

Nisanur
- 89
- 1
- 6
0
votes
2 answers
Datagridview checkboxcolumn validation
In a DatagridView I have databound checkboxcolumns. But if I check or uncheck multiple checkboxes, not all changes are saved. (It doesn't trigger the property Set method on all, maybe on every 2nd). However if I after each checkbox-click, click on…

bretddog
- 5,411
- 11
- 63
- 111
0
votes
1 answer
Datagridview checkbox cell highlight button and member data
I would like to change the back color of some button by clicking a checkbox of a datagridview cell.
The current code was developed with the assistance of TaW and blaze_125. Thanks a lot!
using System;
using System.Collections.Generic;
using…

Paul
- 33
- 5
0
votes
1 answer
DataGridView with checkboxcolumn only detects first checked box
I'm working on a DataGridView with a CheckBoxColum in the first column. I want to be able to query for the indexes of all the currently checked boxes. I have this testing code, but for some reason it only returns the first checkbox checked and not…

CuriousOne
- 922
- 1
- 10
- 26
0
votes
0 answers
Get row value datagridview
How can I get the value of row that I already tick(checkbox).
Dim f_Cell As DataGridViewCheckBoxCell = Nothing
For Each f_Row As DataGridViewRow In dgvUserAccessList.Rows
f_Cell = DirectCast(f_Row.Cells("Input"), DataGridViewCheckBoxCell)

Hazim
- 69
- 2
- 12
0
votes
1 answer
custom column checkbox formatter using jquery
I have to add checkbox in one of the column (middle column) .. I supposed to make some row non editable checkbox .. All i need to know is how do i implement select all option for the header .. it's not coming up in the grid .. i have already set…

Harshitha
- 35
- 2
- 9
0
votes
1 answer
how to change DataGridViewCheckBoxCell checked state by code
foreach (DataGridViewRow dgvr in dataGridViewProductList.Rows)
{
string dgvrID = dgvr.Cells["ID"].Value.ToString();
DataRow[] s = DT.Select("BillID = " + dgvrID);
if…

Manu Varghese
- 791
- 8
- 25
0
votes
0 answers
C# Datagridview Checkbox
I have four columns and I've added a checkbox column to a DataGridView in my C# form. I have got the selected row values also as below:
private void button3_Click(object sender, EventArgs e)
{
List rows_with_checked_column =…

Denesh Kumar
- 95
- 1
- 10
0
votes
0 answers
DataGridViewComboBoxCell failing to retain choice, auto-selecting item at '0' th index of collection
As clear from the title, my datagridviewComboboxCell, which I am adding to selected cells only, are showing it's dropdown list perfectly, and I can select them seamlessly. Problem arises when the combobox losses focus, it forgets everything about…

Rajib Majumdar
- 29
- 9
0
votes
0 answers
Save all rows in Datagridview when Checkbox column is true
Good Morning
I have a program that looks like this.
Form Design
I have a button named Multiple Select and when I click that the button will call SaveCheckedRecords() and here is the code for it
Public Sub SaveCheckedRecords()
Dim failed =…
0
votes
1 answer
WPF Datagrid get data on CheckboxChecked-Event
I've got a datagrid with a checkbox, name and email.
On CheckboxChecked I want to copy the email into another list or string.
How do I get the specific value from the checked row?
private void CheckBox_Checked(object sender, RoutedEventArgs e)
{
…

mykds
- 63
- 9
0
votes
1 answer
Check DatagridviewCheckboxCell - c#
I have 3 DatagridviewCheckboxCell and I used this code to check them:
foreach (DataGridViewRow row in dataGridView1.Rows)
{
DataGridViewCheckBoxCell chk1 = (DataGridViewCheckBoxCell)row.Cells["Column6"];
…

user4340666
- 1,453
- 15
- 36