clearing a table an clicking entries
clearing a table an clicking entries
clearing a table an clicking entries
clearing a table an clicking entries
clearing a table an clicking entries
clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries
clearing a table an clicking entries clearing a table an clicking entries
clearing a table an clicking entries
Go Back  Xtreme Visual Basic Talk > > > clearing a table an clicking entries


Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2008, 03:03 PM
3dkingpin 3dkingpin is offline
Junior Contributor
 
Join Date: Feb 2008
Posts: 256
Default clearing a table an clicking entries


ok i have a dataset with two columns one column is "NAME" the other colulmn is called "URL". The entries in the URL column are displayed as linklabels.

So how do i clear the table and save the table: I tried this

PHP Code:
        VideoplaylistDataSet.Clear()
        Try
            
Me.Validate()
            
Me.VideoplaylistBindingSource.EndEdit()
            
Me.VideoplaylistTableAdapter.Update(Me.VideoplaylistDataSet.videoplaylist)
            
MsgBox("Update successful")

        Catch 
ex As Exception
            MsgBox
("Update failed")
        
End Try 
it works. it clears the table of all rows but when i close and re-open the program the data shows in the table again (i.e. it isnt cleared!). so how do you fix this.

Also how do i put code into the click event for each linklable in the URL columns?
__________________
Hey, Looking for entry level job in VB net programming. Got basic qualification, years of programming experience (mainly self taught) and good portfolio. (UK)
Reply With Quote
  #2  
Old 08-25-2008, 01:28 AM
HorrorGamer HorrorGamer is offline
Regular
 
Join Date: Aug 2008
Location: Surprise, AZ
Posts: 89
Default

Make sure your table has a unique constraint, perferrably a primary key. If not, the table adapter may not be able to create an update and delete statement for you (because based on schema it cannot identify the exact row to update). Do this and regenerate your table adapter. Or, modify the table adapter and add your own code to support the update and delete statments.

Play Tank Games
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
clearing a table an clicking entries
clearing a table an clicking entries
clearing a table an clicking entries clearing a table an clicking entries
clearing a table an clicking entries
clearing a table an clicking entries
clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries clearing a table an clicking entries
clearing a table an clicking entries
clearing a table an clicking entries
 
clearing a table an clicking entries
clearing a table an clicking entries
 
-->