0
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 pesquisados no banco de dados.
var bindingList = alunoDAL.CarregarAlunos();
AlunosColecao alunosColecao = new AlunosColecao();
var source = new BindingSource(bindingList, null);
dataGridViewAluno.DataSource = null;
dataGridViewAluno.DataSource = source;
//Atualiza o Grid.
dataGridViewAluno.Update();
dataGridViewAluno.Refresh();
}
Column names are the same as the columns in the datagridview? ?
– Thiago Loureiro
Yes they are equal, yes debugging appears the names, code etc
– João Víctor