开发者

C# Access Database Remove Rows

Hey, I don't know how to remove a row in Access Database on C# I know how 开发者_C百科to add a row:

    Database3DataSet.ClientsDataTable Tclients = database3DataSet.Clients;
    Tclients.AddClientsRow(textBox1.Text, textBox2.Text);

But I don't know how to remove... Please help D:

Download link for the Application: http://uploading.com/files/11b69ce6/WindowsFormsApplication4.rar/ I Realy don't know why it's didn't work... Can you tell me what's the problem? Thanks. :)


There's a Delete() method on the DataRow object.

Tclients.Rows[0].Delete();
Tclients.AcceptChanges();  // commit the changes
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜