Jump to content

DataGrid Linhas


bioshock

Recommended Posts

Boas, o meu problema é seguinte:

Sempre que eu crio um novo registo este é adicionado à datagrid, o problema é que esta poem o valor no fim da tabela e eu quero que começe no inicio. Tenho esta linha de código:

For i = 0 To totalreg - 1

                FileGet(filenum, tabela, i + 1)

                With tabela

                    Registo.DataGridView1.Item(0, i).Value = .id

                    Registo.DataGridView1.Item(1, i).Value = .name

                    Registo.DataGridView1.Item(2, i).Value = .pass

                    Registo.DataGridView1.Rows.Add()

                End With

Next

Se alguém me poder ajudar, agradecia. Cumps e obrigado.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.