1
I have Two buttons: Next and Previous in a Windows Forms application in C#, I am using an SQL statement:
SELECT * FROM aluno LIMIT 1;
for MYSQL. This statement takes the first record.
Now comes the dilemma, I’m not managing to navigate records (bring all students).
I’m using this code:
if (Contador < Tabela.Rows.Count - 1){}
But the counter variable is taking the second record and not the first.
Hello. Look here how to create a clear question.
– Omni
I think I was clear, I need to click the next button and browse the Tablea record
– Fabrício Mendes
Try to improve formatting, show your attempts, better your question so it can help more users.
– Omni
Maybe this helps, I found this code, http://www.linhadecodigo.com.br/artigo/2961/accessingDos-com-textboxes-botoes-navegacao.aspx Only it is made for access as it will be in C# for mysql
– Fabrício Mendes