CarlosParente Posted April 10, 2012 at 04:22 PM Report #448409 Posted April 10, 2012 at 04:22 PM Boa Tarde Necessito de uma ajuda para a seguinte questão: Em Visual studio 2010 com visual basic em windows forms, Tenho um datagridview com o nome cotacoesdatagridview onde criei uma coluna chamada Selecionar do tipo DataGridViewCheckBoxColumn, pretendo que todos os registos que coloco como true neste cotacoesdatagridview ao clikar no button gravar esta vai inserir os registos numa tabela de vendas que está no segundo datagridview chamada vendasdatagridview, como faço podem ajudar-me sff. Obrigado Carlos Parente
Caça Posted April 10, 2012 at 04:26 PM Report #448410 Posted April 10, 2012 at 04:26 PM For Each L As DataGridViewRow In Dgv.Rows If L.IsNewRow Then Exit For 'Verifica se o valor da coluna Sim/Não é sim If L.Cells(0).Value = True Then 'Insere o registo End If Next Pedro Martins Não respondo a duvidas por PM
CarlosParente Posted April 10, 2012 at 04:37 PM Author Report #448411 Posted April 10, 2012 at 04:37 PM For Each L As DataGridViewRow In Dgv.Rows If L.IsNewRow Then Exit For 'Verifica se o valor da coluna Sim/Não é sim If L.Cells(0).Value = True Then 'Insere o registo End If Next Pedro Martins, Muitissimo Obrigado pela ajuda, mas como consigo obter o Dgv.Rows
Caça Posted April 10, 2012 at 04:40 PM Report #448413 Posted April 10, 2012 at 04:40 PM As linhas estão na variável L. Pedro Martins Não respondo a duvidas por PM
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