开发者

C# Access Database Remove Rows

开发者 https://www.devze.com 2023-03-03 16:07 出处:网络
Hey, I don\'t know how to remove a row in Access Database on C# I know how 开发者_C百科to add a row:

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

精彩评论

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