Chamuanza Posted April 27, 2009 at 12:51 PM Report #259371 Posted April 27, 2009 at 12:51 PM Oi Pessoal - Pensava eu que já tinha resolvido a questão Como é que apago uma linha da DataGrid que adicionei mas que entretanto quero anular se essa mesma linha só aparece na grid depois do comando accionado sair do evento. Private Sub BindingNavigatorAddNewItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click Dim msg As String Dim title As String Dim style As MsgBoxStyle Dim resposta As MsgBoxResult msg = "Vai ser Adicionado um Novo Registo - Quer continuar?" ' Define message. style = MsgBoxStyle.DefaultButton2 Or _ MsgBoxStyle.Critical Or MsgBoxStyle.YesNo title = "Apagar Registo" ' Define title. ' Display message. resposta = MsgBox(msg, style, title) If resposta = MsgBoxResult.No Then Exit Sub Else DataDateTimePicker.Focus() End If End Sub Quando digo não o comando faz o exit sub, e só depois é que alinha aparece na grid
jpaulino Posted April 29, 2009 at 12:06 AM Report #259864 Posted April 29, 2009 at 12:06 AM Está um pouco confuso 😉
Weasel Posted April 29, 2009 at 07:11 AM Report #259877 Posted April 29, 2009 at 07:11 AM Nesse código não tens nenhum Add Row ... Knowledge to the masses
Chamuanza Posted April 29, 2009 at 05:41 PM Author Report #260007 Posted April 29, 2009 at 05:41 PM oi porque foi criado como wizard
passado Posted April 29, 2009 at 11:44 PM Report #260147 Posted April 29, 2009 at 11:44 PM tenta fazer por codigo, nao e muito complicado e date outras possibilidades que o wizard esconde, eu tambem fazia por wizard mas por codigo leva quase o mesmo tempo e fica tudo bonito le isto: http://vbtuga.blogspot.com/2008/04/vbnet-utilizando-o-controlo.html
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