Questions tagged as 'datagridview'

2
answers

Accessing variable in another class comes null - C # Visual Studio 2015

Hello, I know it's a beast question, but I'm having trouble accessing a variable from another class. Situation: - I am using a datagrid, which I want to get the value of a column, and transport that value to another class. Script: public...
asked by 27.12.2017 / 18:33
1
answer

DataGridView loads the data but does not display it

I have a DataGridView , it loads the data but does not display them. private void AtualizarGrid() { //Procura no banco os registro digitado na caixa de pesquisa. AlunoDAL alunoDAL = new AlunoDAL(); //Exibi no Grid os nomes pesqui...
asked by 30.11.2017 / 02:22
1
answer

DataGridView loads data but displays blank

I have a DataGridView, it loads the data, but it does not display them. private void AtualizarGrid() { AlunoDAL alunoDAL = new AlunoDAL(); var bindingList = alunoDAL.CarregarAlunos(); AlunosColecao alunosColecao...
asked by 30.11.2017 / 18:30
2
answers

CellClick event, does not return DateTime value

I am writing some data in DataGridView and Event CellClick should fill DateTimePicker with the value already registered, but I am doing something wrong. Buttons: save, edit, delete, and cellclick event private void btnG...
asked by 30.10.2017 / 18:37
1
answer

Playing Values from a DataGridView to another DataGridView

Good night guys, I have a problem. I have a datagridview that is connected to the database. I have a filter on this normal grid. Now I want to get the filtered values of this grid and play in another Normal grid, created in the hand without conne...
asked by 31.08.2017 / 01:58
0
answers

How to write a text file by clicking on a DataGridView?

I have a DataGridView and when I click this DataGridView I have to write to a file a select comparing a column of a table to another column of another table and what results from that select is what I have to write to...
asked by 29.08.2017 / 15:56
1
answer

DropDownList The Name '' does not exist in the current context

I have a gridview that lists the countries and depending on the selected list the cities of that country. <asp:GridView ID="gvRentalVendor" runat="server" AutoGenerateColumns="false" DataKeyNames="RetalAgency_Id" Width="824px" OnRowDataBoun...
asked by 11.07.2017 / 06:22
1
answer

How to convert a CheckBox to a Toggle Button?

I've created a checkbox column - DataGridViewCheckBoxColumn - in the DataGridView and would like to know if it is possible, and how do I make this column become a button column enable or disable a Toggle Button ?     
asked by 21.06.2017 / 21:19
0
answers

VB: DataGridView

Good morning. I have the problem of the design of the table not updating. The Design: Private Sub DataGridClientsDesign() 'Procedimento que contem o novo estilo da datagrid Me.tabelaprocurar.DataMember = "Empregados" 'Nome da tabela...
asked by 09.06.2017 / 10:22
2
answers

dataGridView1_CellDoubleClick does not work!

I have the simplest function in the world and I can not make it work. When giving 2 clicks on any cell in my datagridview I want it to display the message "1" but it is not working! What's wrong? See my code: private void dataGridView1_...
asked by 16.06.2016 / 01:27