Questions tagged as 'datagridview'

2
answers

Checkbox in DatagridView C #

Good afternoon. I have a datagrid view with a column of type checkbox, tied to a DataTable with the column of type checkbox as well. My problem is this: I have to go through a presence list, if the student is present, I have to set the check to...
asked by 18.04.2016 / 18:50
2
answers

Datagridview and checkbox - strange behavior.

I have a datagridview with some checkboxes. I have this code: Private Sub DataGridView2_CellMouseClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DataGridView2.CellMouseClick If e.ColumnIndex > 1 Then DataGri...
asked by 15.02.2016 / 18:32
1
answer

Block alphabetic ordering in DatagridView

My DataGridView receives product data from a database. They are: description, unit price and quantity. I programmatically added a subtotal column and added the unit price calculation * quantity. As I add items to the datagrid, a function does th...
asked by 31.01.2016 / 19:15
1
answer

How to validate a date in a DataGridViewTextBoxColumn?

I'm creating a form where the user will enter data through a DataGridView , one of the columns of that DataGridView is of type DataGridViewTextBoxColumn and it will receive a date, I would like to validate that date after the...
asked by 23.01.2015 / 14:31
1
answer

How can I allow insertion directly into a DataGridView?

I'm setting DataSource of a DataGridView to List<T> . I enabled by the designer "enable addition". But that line is not appearing with an asterisk to add new elements. My code looks like this: public IEnumerable...
asked by 24.12.2013 / 19:51
1
answer

Catch the value of the ID in the DataGridViewe C # [closed]

I have datagridview and in this grid there is associated data from a database table, so I wanted to get only the id from the value that is in datagridview , and play on a property of type int you receive this value. How do I?    ...
asked by 07.02.2018 / 21:01
1
answer

Data does not appear in the datagridview, even when setting a populated datasource, Why?

I'm trying to capture some information from the database, filter it, and then do validation tests on each of the returned rows. Then I try to get the rows that failed the test and insert into a new datatable. However, after having the datatable...
asked by 16.04.2014 / 15:18
1
answer

checkbox in datagridview

I'mdevelopingaC#applicationthatdoeslabelprintingsothatIcanuseadatagridview,whichbringsupthelinesIneedtoprint,soInowneedtoputacheckboxtoselectthelineIneedtosendtotheprinter.Ineedtohavetheoptiontoselectallthelinesorselectonlyoneline,I'mhavingtrou...
asked by 25.07.2017 / 15:27
1
answer

Error inserting MYSQL by data grid view

The code is as follows, I'm doing an insert from the values of a data grid view foreach (DataGridViewRow row in dgvCON.Rows) { MySqlCommand cmd = new MySqlCommand();...
asked by 14.06.2017 / 02:02
1
answer

DataGridView - Add If (Sum If)

I'm creating software in VB to analyze the balancing of jobs in factories. The software has a DataGridView as follows: Ineedtocreateastackedbarchartperstation(eachbarbeingastation)anddistinguishedactivitiesineachbar(eachdifferentcolorstretchcor...
asked by 06.11.2016 / 23:50