Questions tagged [datagridviewcheckboxcell]
142 questions
1
vote
0 answers
DataGridVIew Refresh not correct for added Checkbox in DataGridViewHeaderCell
I am hoping that someone can shed some light on my issue.
My goal is to take an existing DataGridView with a DataGridCheckBoxColumn and add a CheckBox to its header cell. I found some code while researching my question on StackOverflow and have…
1
vote
1 answer
DataGridView CheckBox selection bug
Our app has a list of items displayed in a DataGridView. The first column is a DataGridViewCheckBoxColumn. We want our app to allow the user to click anywhere on the row as a way to select the CheckBox in the first column.
We find that if the user…

Todd Hoatson
- 123
- 2
- 18
1
vote
1 answer
Powershell: Check all checkboxes in a row where column header is unknown
I am having trouble creating a "SelectAll" checkbox column that actually selects all checkboxes in a ROW not a column. The "SelectALL" column is the third column in the table that i would like to check all the boxes after it in the same ROW. The…

PJBuckley
- 13
- 3
1
vote
2 answers
How can I update the value of a DataGridViewCheckBoxCell immediately?
I am using a DataGridViewCheckBoxCell in a DataGridView control. While the user clicks the checkbox, I verify certain conditions and set its value to false. However, the checkbox remains checked until the user moves to the next row. How can I fix…

Even
- 391
- 3
- 8
- 17
1
vote
1 answer
Passing a checkbox value to a SQL Server stored procedure
I am using C# on Winforms to populate a datagridview from a class in a library. I have been able to get the datagridview to populate with all of my SQL Server data using a stored procedure.
I wish to allow the end user to modify the cells in the…

Wurm
- 13
- 8
1
vote
2 answers
Show MessageBox on Datagridview Checkbox before Check or UnCheck
How to show a msgbox before update the checkbox in datagridview?
Lets say I have a row with checkbox in Datagridview and the value of it is True(Checked) and I will click it. How can I show something like this first?
"Are you sure you want to…
user6825121
1
vote
1 answer
DataGridViewCheckboxCell wont update after loading data
After trying some solutions I can't get it done.
I am reading the access.mdb file and I am populating
the datagridview.
Then I add checkboxcolumn. After it is done you can select some checkboxes and they will be saved in settings. But as I start the…

vandyke
- 117
- 2
- 12
1
vote
0 answers
DataGridView DataGridViewTextBoxColumn FalseValue raising System.FormatException Windows Form VB.Net
I'm using this code to fill/format a DataGridView. The idea is, if the user checks a checkbox and later hits a save button it writes either the TrueValue or the FalseValue back to the database. The code works fine except for an issue with the…

user3799279
- 143
- 1
- 11
1
vote
1 answer
Set DataGridViewCheckBoxCell on all TabPage tabs
I have a TabControl with on each TabPage a DataGridView. The DataGridView has in Column[0] a DataGridViewCheckBoxCell.
I want to uncheck the DataGridViewCheckBoxes on the same Row of the DataGridView of all the TabPages.
I can only access the…

Jan-WIllem
- 91
- 13
1
vote
3 answers
Proper ObjectDataSource Use
Greetings!
I'm creating a User Control that will display data in a GridView control. We are using n-tier architecture and the data in question is retrieved from our database and returned to us as a ReadOnlyCollection. OurNewObject is a class…

Bullines
- 5,626
- 6
- 53
- 93
1
vote
2 answers
Set checkbox in DataGridView with value from file
I have a little problem with iterating through a DataGridView.
Right now I have a textfile (just a long string: true;false;true etc.).
Now I want to read this file and set the value of my CheckBoxColumn in my DataGridView:
First value in file =…

DieBergruft
- 31
- 4
1
vote
1 answer
how to change the style of GWT checkboxcell?
in gwt how do i change the style of checkboxcell? the checkboxcell is inside a gridtable and
datagrid.getColumn(0).setCellStyleNames(SomeCssClass.getMyCss());
does not work
here's a sample of my code
css:
.checkBoxCss{
height:25px;
…

Led
- 662
- 1
- 19
- 41
1
vote
0 answers
Winforms DataGridView not updating after two quick clicks on checkbox
I'm working on an application with a DataGridView bound to a list of entities. The last column is a DataGridViewCheckBoxColumn that toggles between 0 and 1 to set the Status property of the entity. I handle the CellContentClick event of the…

Brian Warshaw
- 22,657
- 9
- 53
- 72
1
vote
3 answers
Use DataGridViewCheckBoxColumn with Y an N values instead of boolean values
Hi I know this may sound a little silly but I want to use a DataGridViewCheckBoxColumn on a field in a database that either contains 'Y', 'N', or blank values. I want the Y values to be checked and everything else to be unchecked.
I am using VB.NET…

slister
- 769
- 1
- 13
- 29
1
vote
1 answer
DatagridViewCheckBoxColumn positioning the checkbox to the left with text following it
i had created a custom checkbox cell and column just to display a text along with the checkbox. the custom paint gets the bounds and paints the string.
the issue i have is, the checkbox is always @ center. and the text follows it.
On the other…

ioWint
- 1,609
- 3
- 16
- 34