Questions tagged [datagridviewcheckboxcell]

142 questions
0
votes
1 answer

One deselected row always get inserted to Database along with selected rows from dataGridView

I have made the following WinForm in which the user provide book details and create a book record. This book record gets added to the dataGridView with the checkBox automatically selected: Now, when I deselect some books and click on 'Insert to…
Ashish
  • 118
  • 6
0
votes
1 answer

Unable to set DataGridViewCheckBoxCell.Value from within Form constructor

Something quite strange. I have a DataGridView with an unbound CheckBox column. When the selected item of a ComboBox changes the DataGridView has it's DataSource updated (according to what is selected in the ComboBox, there is no binding here, just…
0
votes
1 answer

how to maintain checkbox check status on paging link click in datagridview in C#

I need to create paging in datagridview and I was found a demo in programCall.com successfully and that’s link ProgramCall.com Below is screen shot of downloaded demo Form:- Now I update this downloaded code and add a check box column in zeroth…
Pravesh Singh
  • 314
  • 1
  • 8
  • 27
0
votes
4 answers

How to populate CheckBox column with Check in DataGridView if record exists?

I have a DataGridView that only displays 2 columns: Employee Name, and a checkbox called Attended. This is to keep track of employee attendance at safety meetings. When this DGV is loaded, I would like the employees who have already been marked as…
Claire
  • 103
  • 1
  • 5
  • 12
0
votes
5 answers

How can I sort a WinForms DataGridView on a CheckBox column?

So I had a DataGridView with autogenerated columns, some of which were checkbox columns. When I clicked on the check box column's header, it didn't sort. I researched it and it turns out that Microsoft didn't include automatic sorting for checkbox…
John
  • 2,653
  • 4
  • 36
  • 57
0
votes
1 answer

Changing color of a Checkbox of a DataGridCheckBoxCell C# Winform

I have asked this question some time ago Hide some datagridview checkbox cell. I couldn´t get a good answer, so I decided to try something different. I have a grid with all the installments of a loan. Every installment has a checkbox. When that…
Andres
  • 2,729
  • 5
  • 29
  • 60
0
votes
0 answers

Checkbox Column in the Datagridview toggles in Virtual Mode

I have a Datagridview in Virtual Mode. One of the columns in the Datagridview is a checkbox column. So, When I click on the checkbox in any row, the checked value toggles in the other rows. I am not able to select multiple entries. So, if I checked…
Kiran
  • 8,034
  • 36
  • 110
  • 176
0
votes
3 answers

Adding a DataGridViewCheckBoxColumn

I have added a bunch of columns to a DataGridView like this through code. dgvDocDisplay.ColumnCount = 22; dgvDocDisplay.Columns[0].Name = "Tag"; dgvDocDisplay.Columns[1].Name = "[ ]"; dgvDocDisplay.Columns[2].Name =…
Isuru
  • 30,617
  • 60
  • 187
  • 303
0
votes
1 answer

Displaying results of a LINQ TO XML query in Gridview

I am querying an xml document in LINQ and would want to display the results in gridview to allow users to select from the list. the query is as a result of user input. Here's a copy of my xml.
0
votes
0 answers

DataGridViews with DataGridViewCheckBoxColumn AND DataGridViewButtonColumn

I posted something like this yesterday but think maybe my wording wasn't great since I usually get multiple answers within minutes and i got nothing. I work in a C# environment using VS 2008. I work with datagridviews well enough, and can work with…
Ryan Ward
  • 1,523
  • 4
  • 15
  • 23
0
votes
1 answer

DataGridViewCheckboxColumn not setting underlying data

I have a DGV bound to an IEnumerable. T has a boolean property which can be get/set. When loading the table, the get property is accessed to populate the DataGridViewCheckboxColumn. I can see it being hit in the debugger. When I click a cell in the…
Stealth Rabbi
  • 10,156
  • 22
  • 100
  • 176
0
votes
1 answer

selectable checkbox in gridview

VS2010 .net I have a gridview that displays information from a database. One of the fields is a checkbox. What I would like to do is be able to click the checkbox and have it update back to the database, but the checkbox field is grayed-out. …
Mike
  • 437
  • 3
  • 8
  • 18
0
votes
2 answers

Create a simple DataGridView with List of objects and checkbox column (C#)

I have looked at a lot of places and I'm struggling to do this supposedly simple thing. I have a Windows form on which I've to show a simple DataGridView in this form: | (CheckBoxColumn) | FilePath | FileState | Now, there are a couple of problems.…
0
votes
2 answers

I am having some trouble with adding checkbox column in a my datagridview

I have a datagridview on my page, the datasource of which keeps changing based on records retrieved with pair of values from 2 combo-boxes, I need to add a checkbox column to my datagrid, which has no databinding with any column from my database…
Samy S.Rathore
  • 1,825
  • 3
  • 26
  • 43
0
votes
2 answers

c# Is there an event for datagridview's checkedbox

i would like to know if there is an event for every time someone checks an datagridview's checkbox. My goal is to count how many rows are checked but i want the count to be refreshed every time the user checks, so that is why i'm am wondering if…
pharaon450
  • 493
  • 3
  • 9
  • 21
1 2 3
9
10