PC Review


Reply
Thread Tools Rate Thread

datagrid : why doesn't the row disappear after the delete button click?

 
 
Hyphessobrycon
Guest
Posts: n/a
 
      17th Mar 2005
hallo,

why doesn't this function? Only when I select the datarow, push the delete
button of the keyboard and then the btnrubriekweg button.

why not immediately from the rubriekweg button only?



a thankful Hyphessobrycon, the new fish in the vbOcean





Private Sub btnrubriekweg_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnrubriekweg.Click

Dim cn As New OleDb.OleDbConnection(constr)

Dim dc As New OleDb.OleDbCommand

dc.Connection = cn

Try

dc.CommandText = ("delete soort=?, kosten=?, datum=? from tblVast where
soortid = ?")

Catch ex As Exception

MsgBox(ex.Message)

End Try

dc.Parameters.Add("@soort", OleDb.OleDbType.VarChar, 50, "Soort") ' "Soort")

dc.Parameters.Add("@kosten", OleDb.OleDbType.Single, 16, "Kosten")

dc.Parameters.Add("@datum", OleDb.OleDbType.Date, 12, "Datum")

dc.Parameters.Add("@soortid", OleDb.OleDbType.BigInt, 64, "Soortid")

daVastBewerkenJ.DeleteCommand = dc

Try

daVastBewerkenJ.Update(dsVastBewerkenJ, "tblVast")

Catch ex As Exception

MsgBox(ex.Message)

End Try

refreshen_vast()

End Sub

End Class





 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
button disappear when click Jun Sheng Microsoft Powerpoint 1 8th Jun 2008 11:45 AM
Insert Options button doesn't disappear =?Utf-8?B?U2VyYXBo?= Microsoft Excel Misc 0 25th Apr 2006 02:09 PM
Button doesn't post back/click code doesn't run VB Programmer Microsoft ASP .NET 1 26th Jan 2006 03:06 AM
Button ghosts... click it works... click again it doesn't work =?Utf-8?B?QmVu?= Microsoft Access Forms 4 14th Dec 2005 01:05 PM
Datagrid: click edit and all the rows disappear! trebor@sirius.com.no.more Microsoft ASP .NET 4 3rd Jan 2004 07:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:43 AM.