Questions tagged [datagridviewcheckboxcell]

142 questions
0
votes
2 answers

Unchecking checkboxes programmatically

I have a certain requirement that, if the first checkbox in a row of checkboxes is unchecked, then all the other checkboxes must be unchecked. Here is a sample UI I am using DevExpress 21.2.3 and RepositoryItemCheckEdit as the check box Can anyone…
roby
  • 1
0
votes
1 answer

How to get the last click event on DataGridViewCheckBoxCell

I'm using a DataGridViewCheckBoxColumn inside a DataGridView in a WinForm panel. When a checkbox is clicked, I need to compute things that might change a Control state outside the DataGridView. To do so, I have to handle the CellContentClick event…
0
votes
2 answers

How to set color for checkbox present in datagridview?

I have a datagridview in windows form. It looks like this. In this, have one Checkbox column, two textbox column. My requirement is need to set readonly true and set grey color for the checkbox for the country has Germany as like below. Not like…
Nivitha G
  • 243
  • 3
  • 7
  • 17
0
votes
2 answers

Hiding particular datagridview cell in c#

I have a datagridview in windows form. Datagridview looks like below: In this, have one Checkbox column, two textbox column. My requirement is need to hide checkbox from the cell for the country has Germany as like below. For this, I tried by two…
Nivitha G
  • 243
  • 3
  • 7
  • 17
0
votes
0 answers

DataGridView Using shift / ctrl keys to check multiple row's checkboxes

I'm having problems checking checkboxes of multiple rows at one time using the shift key and FullRowSelect. The checkboxes are in the first column (0). It only checks the box in the row I click on. Any tips or advice is appreciated. Thanks in…
J33C316
  • 3
  • 3
0
votes
0 answers

Winforms Clear Datagridviewcheckboxcell

I have a datagridview with a datagridviewcheckboxcolumn. I currently have this as a 3 state option so you get checked, unchecked and the filled square. For the 3rd state, I'd rather the cell be completely blank. I've tried drawing fillrectangles…
Dan
  • 89
  • 6
0
votes
0 answers

DataGridViewCheckBox Not Checking from Bound Data

I am having trouble getting a DataGridView checkbox to show as checked. The DataGridView is bound to a List of a model that is being populated from a database. There are three values for this model class, 2 strings and a boolean. At run time I can…
0
votes
0 answers

datagridview click event and drag and drop togeder doesn't work - winform

I've implemented this simple drag and drop between rows of a DataGridView by following this example: datagridview-drag-and-drop-rows The grid has a checkbox column (DataGridViewCheckBoxColumn) that is no longer clickable after the drag and drop has…
pinale
  • 2,060
  • 6
  • 38
  • 72
0
votes
3 answers

C# Exporting selected DataGridViewCheckBoxCell

I'm trying to export only the selected checkbox items on a datagridview. The current code I have works, but the problem is it exports everything, I'm able see the True/False values in the exported csv file but for the life of me I can't figure out…
Dunwitch
  • 197
  • 6
  • 18
0
votes
1 answer

Select all checkboxes for updating data in datagridview

I'm trying to update some of data from datagridview by selecting the checkbox headers for the rows I want to update and then pressing the update button. Problem is that it's not updating the rows as intended, it updates all columns except one. I…
Nurman Ade
  • 31
  • 1
  • 6
0
votes
1 answer

How to give initial value for DataGridViewCheckBoxColumn and fix error Object reference not set to an instance of an object?

I want to delete checked rows in DatagGidView from the database , I searched the available questions in this site but i cannot find the exact answer how to avoid null value error if checkbox not checked for the row. I created…
0
votes
1 answer

I need to copy all selected datagridview row to another datagridview when checkboxcolumn is checked

I am attempting to copy datagridview rows to another datagridview when checkboxcolumn is checked. I am loading datagridview1 from treeview when child node is selected. However, when I select another childnode, the previous checkedbox disappears …
0
votes
1 answer

How can the datagridview directly after assign a value in code?

I have a WinForms application and i use datagridview in form. The DataGridView have many checkbox columns and the cells can be selected and processed by code. So it's possible to check/uncheck all cells or copy to/insert from clipboard. This works…
Andy A.
  • 1,392
  • 5
  • 15
  • 28
0
votes
0 answers

Struggling with looping a list or array of datagridviewrows,How can i loop a datagridviewrow list?

heres an image Im getting a "System.NullReferenceException,System.Windows.Forms.DataGridViewCell.Value.get returned null." error when i try to access the value of a certain cell in an array , basically what im trying to do is create 2 arrays of rows…
0
votes
1 answer

How to programmatically add CheckBox Column to RadGridView control. Error Message: A Column with the same Name exists in the collection

I'm trying to add a CheckBox Column to RadGridView control using code. Below is my code: Sub AddCheckColumnGrid() ' Dim chkSelection As New DataGridViewCheckBoxColumn // Microsoft Control Dim chkSelection As New GridViewCheckBoxColumn '//…