Questions tagged [datagridviewcheckboxcell]

142 questions
2
votes
1 answer

Custom DataGridViewCheckBoxCell visual update doesn't work in edit mode

I have the following DataGridViewCheckBoxCell. the problem is the visual update doesn't take place immediately in the edit mode, only when i quit it public class CustomDataGridViewCell : DataGridViewCheckBoxCell { protected override void…
2
votes
4 answers

Cannot select checkbox in a databounded DataGridView

I've a DataGridView which is working perfectly fine. I use it just to show data. Now I want ability to select rows by check box and perform an operation for only selected rows on click of a button (this button is out of the grid on the same form).…
IsmailS
  • 10,797
  • 21
  • 82
  • 134
2
votes
0 answers

yii2 checkbox column selected rows - how to get parameters on selected rows using gridview

How to get parameters using gridview checkbox on selected rows. I have button for multiple action in header of gridview. Html::button('', ['type'=>'button', 'title'=>Yii::t('app', 'Bulk Reject'),…
Nand Lal
  • 682
  • 1
  • 11
  • 25
2
votes
1 answer

Is there a way to stop DataGridViewCheckBoxColumn auto checking on click?

I am using the DataGridView and have a few DataGridViewCheckBoxColumns setup, two of which have the ThreeState property set to True. For some rows in my grid, I only want the checkbox to be either Checked or Indeterminate. Unchecked should never be…
AndyG
  • 23
  • 3
2
votes
1 answer

Last checked row in datagridview checkbox column is not checked

I have DataGridView populated from excel file. I added checkbox column to this datagridview ... dtSet.Tables[0].Columns.Add(new DataColumn("boolCol", typeof(bool))); dgvInputFile.DataSource = dtSet.Tables[0]; dgvInputFile.AllowUserToAddRows =…
cattaneo
  • 63
  • 8
2
votes
2 answers

DataGridView Check Box selection

I added datagridview to my win forms app and I also added one CheckBox for marking rows. The CheckBox works as I expected until the user sorts the DataGridView. After the sort the previous selection of checkbox column is lost. Is there a way I can…
adopilot
  • 4,340
  • 12
  • 65
  • 92
2
votes
1 answer

Marking Checkboxes in Data grid View on the basis of Datatable

I have a Data grid View dataGridView1 which is bind with a data table dt1. Data table dt1 has following data: name | status -----+------- abc | 0 abd | 1 abc | 0 abc | 1 abc | 1 I am putting a check box in Data gridview and I want…
Kamran
  • 4,010
  • 14
  • 60
  • 112
2
votes
2 answers

wpf bind checkbox command inside DataGridTemplateColumn.CellTemplate

This has been asked several times with different variations but I can't get any of them to work. I'm trying to get a method called in my viewmodel when a checkbox (in a datagridTemplateColumn.cellTemplate) is clicked in my view
2
votes
1 answer

Unbound column in bound dataGridView not holding cell values

I have a datagridview where all the columns are bound except for one checkbox column. In my form's OnLoad I go through the rows in my dataGridView and set DataGridViewCheckBoxCell.Value = true for each row. I've verified at the end of my OnLoad…
1
vote
0 answers

C#: DataGridViewCheckBoxCell strange behaviour

Possible Duplicate: DataGridViewCheckBoxCell how to show checked when set during form load I am having a problem with a DataGridView in a C#-WinForms project. I fill it with data from a local database. Additionally, I have added a CheckBoxColumn…
vI3Tz
  • 33
  • 3
1
vote
1 answer

How to get checked cell from datagridview in C#

I have datagridview with checkboxcolumn. How can I detect when checkbox state in cell has changed? Which event is fired when user click checkbox in datagridivew?
Robert
  • 2,571
  • 10
  • 63
  • 95
1
vote
0 answers

Datagridview : Make checkbox column read-only

I am using a Datagrid view control to display data. I am using datasource binding to load data. Datagridview column structure is defined and it has one DataGridViewCheckBoxColumn, which I have made readonly at design time. However, this property…
VJOY
  • 3,752
  • 12
  • 57
  • 90
1
vote
1 answer

Change checkBox Size of Datagridview Checkbox Cell and increase the clickable area

I have a checkbox column in my .net core Winform data GridVew. I already made the checkbox bigger to be easier for the user to click. My code inside CellPainting, e.PaintBackground(e.CellBounds, true); …
1
vote
2 answers

How to exclusively set the value of a DataGridViewCheckBoxCell?

I have a List objects that have a bool property named Marked. I want to check / uncheck the Cell corresponding to this property, in a way that only one Car can be selected at the same time. I want that the value of this property is updated in…
1
vote
1 answer

Checkbox in DataGridView doesnt Check

I create a DataGridView as follows private void IniciarGV() { using (var db = new Entities()) { var ListaPantallas = (from a in db.PANTALLAS select a).ToList(); if…
1 2
3
9 10