Mendes_PT Posted April 6, 2020 at 06:10 PM Report Share #617817 Posted April 6, 2020 at 06:10 PM Boa tarde, Eu estou a usar um codigo para passar as linhas selecionadas de um datagridview para outro datagridview em outro form mas quando passa as linhas passa com a ordenacao de baixo para cima. Ou seja Datagridview Carregada 1 2 Quando passa para outra datagridview fica 2 1 O código é : <Dim dr As New System.Windows.Forms.DataGridViewRow For Each dr In Me.DataGridView1.SelectedRows Me.DataGridView2.Rows.Add(dr.Cells(0).Value, dr.Cells(1).Value, dr.Cells(2).Value, dr.Cells(3).Value, dr.Cells(4).Value, dr.Cells(5).Value, dr.Cells(6).Value, dr.Cells(7).Value, dr.Cells(8).Value, NumericUpDown1.Value) Next> Alguem me pode ajudar? Obrigado Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now