Questions tagged as 'datagridview'

1
answer

DataGridView Handling

I have to display an object list in a DataGridView I'm doing as follows: class EntradaModel { int codigo, motivo, anterior, quantidade; string observacao, tipo; DepositoModel deposito = new DepositoModel(); ProdutoModel produt...
asked by 07.12.2015 / 15:03
1
answer

Getdata function VB.NET

I'm trying to create a function to update the Datagridview. I added the following code but a "Can not clean list" error Code: Private Sub GetData() Try con = New SqlConnection(cs) con.Open() cmd = New SqlComm...
asked by 11.11.2015 / 18:48
2
answers

How to streamline searches in VB.net / Access97 database

I use a query that does the search in 3 different tables, return this query attribute in a Datatable that will fill a Datagridview . The problem is that the search itself is a little time consuming, I used TOP as a limit...
asked by 14.07.2015 / 17:22
1
answer

How to limit the number of rows after sorting the datatable vb.net/C#

How do I limit the amount of rows in a datagrid after DefaultView.Sort Follow the code: da = New OleDbDataAdapter(MySQL, Conexao) dt = New DataTable("Pedidos") da.Fill(dt) dt.DefaultView.Sort = "Data Desc"...
asked by 15.07.2015 / 18:07
2
answers

How can I create a DataGridView with Mongodb?

I want to display the DB data in a table, but so far I have been able to do it with a ListView . How can I do this but using a DataGridView ? using System; using System.Collections.Generic; using System.ComponentModel; using System...
asked by 05.12.2014 / 04:56
1
answer

Popular datagridview in C # with class with inheritance

Good people, I have the following situation: public class TiposMateriais { public int tipoCodigo { get; set; } public string tipoDescricao { get; set; } } public class Materiais { public int matCodigo { get; set; } public...
asked by 13.01.2015 / 01:01
2
answers

How to fill a datagrid in a form with fields in another form C #?

I'm doing a loyalty system, and wanted to use two forms for clients , form1 with datagridview and a button to sign up and the other form2 with the data fields to be filled , this form2 would be triggered by pressing the form1 button, w...
asked by 17.09.2014 / 22:18
1
answer

Popular Grid VB6

I have a form that receives information from the user and would like to display them in a datagrid. I already have the DataSource which is a Query that is assigned to a String variable named SQL. It returns the information I need and would like...
asked by 13.02.2014 / 13:08
0
answers

DataGridView Row Index

Good afternoon !! I'm implementing a code and would like a help. I'm filling a grid with data dynamically, recovering from bank step to a label and label to grid. It displays in order, but I'd like it to display in descending order. ex:...
asked by 26.10.2018 / 20:34
0
answers

How to create a table with DataGridViwer and get TXT data

Hello, I just migrated from C to C #. I learned some things from C # by seeing the compiler error messages. What I want to do is to have Datagrid look the way the image is: Link. Well, I need exactly that. How to get the data from tx...
asked by 17.10.2018 / 19:29