C # Registry Navigation

1

I have two buttons: Next and Previous in a Windows Forms application in C #, I am using a SQL statement:

SELECT * FROM aluno LIMIT 1; 

for MYSQL. This instruction takes the 1st record.

Now comes the dilemma, I am not able to do log shipping (bring all the students).

I'm using this code:

if (Contador < Tabela.Rows.Count - 1){}

But the counter variable is catching the second record, not the first.

    
asked by anonymous 03.08.2014 / 22:46

1 answer

1

For navigation, it is required to consult with all students:

SELECT * FROM aluno

Bringing only one record, the student list will come with just one record.

    
04.08.2014 / 08:19