Questions tagged as 'datagridview'

0
answers

Change and Save the Row Color of the DataGridView

I want to change the color of the DataGridView line and up to you. Code: private void btnativo_Click(object sender, EventArgs e) { MudarCor(); } public void MudarCor() { dgvIngrediente.SelectionMode = DataGridViewSelectionMo...
asked by 08.10.2016 / 23:49
1
answer

Display the ID of another table in the DataGridView

How do I display the ID of another table in my DataGridView ? I can display all fields except ID. var novaListaPessoaFisica = listaPessoaFisica.Select( pessoaFisica => new { PessoaFisicaID = pessoaFisica...
asked by 26.08.2016 / 03:13
1
answer

How to add scrollbar in DataGridView VB?

I need to add a scrollbar for the number of lines in a DataGridView , since I do not want to work with pagination, here comes the question, how do I do it?     
asked by 25.12.2015 / 12:12
2
answers

How to Save Datagridview items within a column?

I'm creating a Budgets form, similar to this one in the photo: As you can see, in the New button, you generate a new row in the bank with the budget number in the Código field and the client in the NomeCliente field. But whe...
asked by 19.06.2015 / 14:28
2
answers

How to display field values of two classes in a DataGridView? [duplicate]

I'm populating a DataGridView object with a list of classes of type List<Curso> , and the way that I populate DataGridView is as follows: meuDataGridView.DataSource = cursos; However, one of the fields in my class C...
asked by 13.07.2018 / 17:02
1
answer

Query the database through a text box

Hello, I'm currently in a part of a project where I have to search the database through a text box. For example I searched for "Joseph" and returned all the data contained in the database with the name "Joseph". You could also search for "Traver...
asked by 15.05.2017 / 11:10
2
answers

Do not display null value (01/01/0001) of a Datetime in a DataGridView

My DataGridView has some fields DateTime with value null (01/01/0001). How do I not display these values, leaving the field blank? Currently: HowIwouldlikeyoutostay: I'm using WindowsForm , C # and .Net Fra...
asked by 29.10.2014 / 11:04
1
answer

Number of rows in DataGridView

I have a DataGridView and I need it to show me in a textbox the total number of rows I have in DataGridView. How can I do this. Below is my code private void ListaGrid() { string strSQL = @"SELECT CO...
asked by 10.05.2017 / 18:20
1
answer

Summaries and db Reformatting for a DataGridView

Probably did not elaborate a correct title, but I will try to explain my detailed question. I'm working with WindowsForm in VisualBasic15 I need to make a form where I can get data from tb to db . But I do not just want to...
asked by 01.02.2017 / 14:58
1
answer

How to solve Object Reference Not Set To An Instance Of An Object

I have a serious problem. I have a populated GridView with data from a BD MySql working perfectly. I also have a button to turn it into a table to be inserted into a PDF using iTextSharp which also works perfectly,
asked by 24.05.2017 / 03:09