martim07 Posted November 15, 2007 at 10:02 PM Report Share #147642 Posted November 15, 2007 at 10:02 PM Boas, eu gostava de saber como é k s faz isto: Tenho uma DataGridView e eu keria obter o número da row que selecionei na DataGridView. Podem-me ajudar?? Cumpts Link to comment Share on other sites More sharing options...
Asgorath Posted November 15, 2007 at 10:49 PM Report Share #147661 Posted November 15, 2007 at 10:49 PM Boas. Dim selectedRowCount As Int32 = DataGridView1.Rows.GetRowCount(DataGridViewElementStates.Selected) "The Dark Side Clouds Everthing. Impossible To See The Future Is."My rig: Intel Core 2 Quad Q9450 | abit IP35P | 4G Kingston 800 Mhz | XFX GeForce 9800 GX2 1G ddr3 | 2X WD5000AAJS 500Gb Sata 2 | PSU 600W || Caixa El-Diablo | Creative XMod Link to comment Share on other sites More sharing options...
esquima Posted November 15, 2007 at 11:08 PM Report Share #147672 Posted November 15, 2007 at 11:08 PM Dim i As Integer = DataGridView1.CurrentRow.Index o index da linha fica guardado no i Link to comment Share on other sites More sharing options...
martim07 Posted November 16, 2007 at 02:26 PM Author Report Share #147793 Posted November 16, 2007 at 02:26 PM Thanks esquima!! funcionou.. Agradeço também o esforço doAsgorath , mas a dica que ele m deu n consegui por a funcionar. Cumpts Link to comment Share on other sites More sharing options...
Asgorath Posted November 16, 2007 at 03:02 PM Report Share #147800 Posted November 16, 2007 at 03:02 PM Martim07 funciona bem Dim selectedRowCount As Int32 = DataGridView1.Rows.GetRowCount(DataGridViewElementStates.Selected) MessageBox.Show(selectedRowCount.ToString) http://justanotherhomepage.net/datagridview.jpg "The Dark Side Clouds Everthing. Impossible To See The Future Is."My rig: Intel Core 2 Quad Q9450 | abit IP35P | 4G Kingston 800 Mhz | XFX GeForce 9800 GX2 1G ddr3 | 2X WD5000AAJS 500Gb Sata 2 | PSU 600W || Caixa El-Diablo | Creative XMod Link to comment Share on other sites More sharing options...
Ivo Pereira Posted November 18, 2007 at 12:19 PM Report Share #148318 Posted November 18, 2007 at 12:19 PM martim07 muda o tópico para [RESOLVIDO] [VB.NET] Obter numero da row de uma DataGridView 🙂 Link to comment Share on other sites More sharing options...
martim07 Posted November 18, 2007 at 09:13 PM Author Report Share #148458 Posted November 18, 2007 at 09:13 PM E como faço isso? n sei fazer Link to comment Share on other sites More sharing options...
Ivo Pereira Posted November 18, 2007 at 09:49 PM Report Share #148464 Posted November 18, 2007 at 09:49 PM no teu post principal clica em Modificar, seguidamente irá abrir a página para modificares o teu post, ai basta no campo Assunto alterares o título actual do tópico para o título desejado 🙂 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