ProgramadoraR Posted February 21, 2013 at 07:24 PM Report #496519 Posted February 21, 2013 at 07:24 PM Boas, como é que eu faço para eliminar dados de um datagridview? o que quero fazer é para ser selecionada uma linha e apagar a mesma da base dados... Desde já, Obrigada
NunoDinis Posted February 21, 2013 at 07:28 PM Report #496520 Posted February 21, 2013 at 07:28 PM Podes fazer assim: i = dg.CurrentRow.Index; Dim query As String = "delete from tuatabela where campo='" & dg.Item(0, i).Value() & "'"; Estranha forma de vida que tem a capacidade de transformar comandos em mensagens de erro. ndsotware.org
bioshock Posted February 21, 2013 at 07:29 PM Report #496521 Posted February 21, 2013 at 07:29 PM http://stuffpinho.wordpress.com/?s=datagridview
ProgramadoraR Posted February 21, 2013 at 07:55 PM Author Report #496524 Posted February 21, 2013 at 07:55 PM i = dg.CurrentRow.Index; Dim query As String = "delete from tuatabela where campo='" & dg.Item(0, i).Value() & "'"; este codigo nao da :/
NunoDinis Posted February 21, 2013 at 08:55 PM Report #496530 Posted February 21, 2013 at 08:55 PM Dá algum erro ? Estranha forma de vida que tem a capacidade de transformar comandos em mensagens de erro. ndsotware.org
ProgramadoraR Posted February 21, 2013 at 09:25 PM Author Report #496536 Posted February 21, 2013 at 09:25 PM ya, nao reconhece o "i", o "dg", o "dim" e o "As"
NunoDinis Posted February 21, 2013 at 10:04 PM Report #496552 Posted February 21, 2013 at 10:04 PM Epa, porque está em VB.NET. Só precisas de converter para C#.. Estranha forma de vida que tem a capacidade de transformar comandos em mensagens de erro. ndsotware.org
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