3
Contributors
5
Replies
17
Views
4 Years
Discussion Span
Last Post by EXTRA_RICE
0

try this

Datagrid1.DataSource = Nothing

and also try this

Datagrid1.Clear

hope this helps you . . .

Edited by rishif2

0

i got an error saying "Method or Data Member not Found!"..huhuhuhu is it possible to delete all the records in just one button?

0

So 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
0

i got an error sir.. pls look at the picture that i uploaded.thanx

Edited by EXTRA_RICE: error

Attachments problem.jpg 440.22 KB
0

its ok and well working sir..thanx a lot!!

Edited by EXTRA_RICE: typographical

Attachments problem.jpg 440.22 KB
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.