Questions tagged [datagridviewcheckboxcell]

142 questions
0
votes
1 answer

Adding a DataGridViewCheckBoxCell

Simple code lines: myGrid.Columns.Add("Question", "Question") myGrid.Columns.Add("Answers", "Answers") myGrid.Rows.Add() myGrid.Rows(0).Cells("Question").Value = "dummy checkbox test" Dim chk As New DataGridViewCheckBoxCell chk.TrueValue =…
Jaime Oliveira
  • 751
  • 1
  • 5
  • 13
0
votes
2 answers

Checkbox/RadioButton to select and deselect all checkboxes within a popup

I have a list of check boxes that I want to be able to select and deselect them all at once, how would |I do this using a check box? The mxml of the check boxes I have are below:
0
votes
0 answers

Populate check boxes in DataGridView based on database values vb.net

PLEASE SEE CLEARER EDITED CODE POINTED OUT BELOW TO BE MORE SPECIFIC ON WHERE HELP IS NEEDED. What I am trying to accomplish is this: I have a DataGridView that is using a DataAdapter to fill with the DataTable. I have hard-coded a separate…
0
votes
3 answers

Not getting values from grid table when checkbox is checked?

I want to get value of row where checkbox is checked. I am new to C# windows forms and so far unsuccessful. I want to eventually use these row values, so if user selects multiple row and then I should get value for those checked. Also, I have set…
0
votes
0 answers

DataGridView Tag value for rows is null

I have 2 DataGridView controls on a form. Both have same number and types of columns. 1 TextBox Column and 2 CheckBoxColumns. The Problem is that first DataGridView is working fine but the other one is not. both have same binding methods and…
THunter
  • 323
  • 5
  • 11
0
votes
1 answer

Why isn't DatagridviewCheckboxColumn's checkbox getting checked?

I have a Datagridview in which i am adding a DatagridviewCheckbox column. The problem i am facing is when i run my program and then try to check my checkbox, it doesn't get checked. Even i have set datagridview's Editing as enabled and despite…
Sameer
  • 71
  • 1
  • 1
  • 8
0
votes
1 answer

How do I show errors on a current DataGridViewCheckBoxCell?

I have an application in which one of my screens makes heavy use of DataGridViewCheckBoxCells. In short, I have the table set up in VirtualMode with an Undo system involved, validation, and so on. In some cases it doesn't make sense to check a box…
Gutblender
  • 1,340
  • 1
  • 12
  • 25
0
votes
1 answer

DataGridViewCheckBoxCell is broken for ->Value result

I'm using a DataGridViewCheckBoxCell but I can't figure out how to have the ->Value property working "correctly". for (int i = this->dgvConfigs->Rows->Count - 1; i >= 0 ; i --){ DataGridViewCheckBoxCell^ dgvcbc = (DataGridViewCheckBoxCell^)…
Eric
  • 19,525
  • 19
  • 84
  • 147
0
votes
0 answers

Create a DataGridViewCheckBoxCell in DataGridView

I contact you because I have a problem in my C# program. I am using a basic DataGridView with four DataGridViewTextBoxColumn. And I would like to add a checkbox with a label in the first cell of the data grid view at the position Row[0]/Column[0]. I…
Zaraki21
  • 21
  • 1
  • 4
0
votes
1 answer

Looping through Checkbox Columns to count selected cells

I have a checkbox column in my datagrid view, and I want to restrict the user into checking 7 boxes only, no more, no less. Also, I want something to happen on every checkbox click. Like this (pseudo-code only): While counter is not equal to 7 { …
airhalynn101
  • 81
  • 2
  • 9
0
votes
2 answers

Can't Identify Values of DataGridViewCheckBoxCell

So I have seen several posts here and I have tried every solution to no avail. I have tried several examples all over the web and nothing has worked. It's taunting me! The below code is what I'm running now which I feel should work but it doesn't.…
Tim
  • 1,249
  • 5
  • 28
  • 54
0
votes
0 answers

databound datagridviewcheckbox not updating underlying list until focus changed

I am using a winform datagridview bound to a list. There is a checkbox column bound to a Boolean type field. The problem is, when check/uncheck a checkbox, its not updating the underlying list until I change focus to another cell of the datagrid…
s.k.paul
  • 7,099
  • 28
  • 93
  • 168
0
votes
2 answers

Immediately update DataGridViewCheckBoxCell

I am programmatically updating my WinForm DataGridView Problem, DataGridViewCheckBoxCell doesn't get updated !!! I was google, it seams like knowing case but whatever I've tried did not help yet. private void InitializeFunctionsDataGrid() { …
0
votes
0 answers

I want to update the datagridview values into database through checkbox that is in datagridview

public void fnsave() { int i = 0; bool status = false; foreach (DataGridViewRow row in dataGridView1.Rows) { if (Convert.ToBoolean(String.IsNullOrEmpty(row.Cells["AllowAction"].Value.ToString().Trim()) ? …
0
votes
1 answer

DataGridView, DataGridViewCheckBoxColumn not allowing multiple checks

Have kind of a strange problem with a DataGridView. Its DataSource bound to a list of objects with set; get; It gets the data from this source as it should with all its boolean states for the checkboxes in the datagridview. How ever, when I try to…
Jonas Lindahl
  • 752
  • 10
  • 24