_neiah__ Posted March 9, 2009 at 11:45 AM Report Share #249348 Posted March 9, 2009 at 11:45 AM Boas! Espero que me possam ajudar聽 馃槢 Eu tenho uma data grid view, e queria que quando o utilizador carregasse para editar ou apagar o registo mostrasse uma caixa de texto a informar que o registo foi alterado ou apagado. O c贸digo para alterar e apagar o registo eu j谩 o tenho, mas s贸 quando se carrega no bot茫o 茅 que o registo se apaga ou edita. Queria fazer o mesmo mas utilizando s贸 a datagridview. Espero que me possam ajudar. Obrigado聽 馃檪 Link to comment Share on other sites More sharing options...
jpaulino Posted March 9, 2009 at 07:48 PM Report Share #249479 Posted March 9, 2009 at 07:48 PM Tens os evento RowsRemoved e CellBeginEdit que podes utilizar. Link to comment Share on other sites More sharing options...
_neiah__ Posted March 9, 2009 at 08:09 PM Author Report Share #249491 Posted March 9, 2009 at 08:09 PM E como uso? ? Link to comment Share on other sites More sharing options...
jpaulino Posted March 9, 2009 at 08:49 PM Report Share #249499 Posted March 9, 2009 at 08:49 PM Fazes assim (exemplo): 聽 聽 Private Sub DataGridView1_RowsRemoved(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewRowsRemovedEventArgs) Handles DataGridView1.RowsRemoved 聽 聽 聽 聽 MessageBox.Show("Removido a linha :" & e.RowIndex) 聽 聽 End Sub E o mesmo para os outros eventos ... Link to comment Share on other sites More sharing options...
_neiah__ Posted March 9, 2009 at 09:02 PM Author Report Share #249508 Posted March 9, 2009 at 09:02 PM J谩 estou a ver 馃檪 Muito 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