CarlosParente 0 Report post Posted April 10, 2012 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 Share this post Link to post Share on other sites
Caça 17 Report post Posted April 10, 2012 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 Share this post Link to post Share on other sites
CarlosParente 0 Report post Posted April 10, 2012 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 Share this post Link to post Share on other sites
Caça 17 Report post Posted April 10, 2012 As linhas estão na variável L. Pedro Martins Não respondo a duvidas por PM Share this post Link to post Share on other sites