HOW CAN I DELETE ALL RECORDS ON A DATAGRID TABLE IN JUST ONE BUTTON..
EXTRA_RICE
0
Light Poster
Recommended Answers
Jump to Posttry this
Datagrid1.DataSource = Nothing
and also try this
Datagrid1.Clear
hope this helps you . . .
Jump to PostSo you want to delete everything in the DataGrid, (recordset)
Private Sub Delete_cmd_Click Do While Not Adodc1.Recordset.EOF Adodc1.Recordset.MoveFirst Adodc1.Recordset.Delete Adodc1.Recordset.Update Adodc1.Recordset.MoveNext Loop End Sub
All 5 Replies
rishif2
57
Posting Whiz in Training
EXTRA_RICE
0
Light Poster
Klahr_R
0
Newbie Poster
EXTRA_RICE
0
Light Poster
EXTRA_RICE
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.