开发者

Synchronizing datagridview and database table

开发者 https://www.devze.com 2023-02-20 16:26 出处:网络
I have a datagridview and i have bind it to database. But when I delete a record , or insert , or edit , the changes don\'t apply to my table开发者_运维知识库

I have a datagridview and i have bind it to database. But when I delete a record , or insert , or edit , the changes don't apply to my table开发者_运维知识库 Is there any solution? I want to use a little code and do it by wizard and visual


Create a event whenever a record is added, deleted or edited and have that event fire a fresh databind to the datagridview.


Take a look at SQLDataSource Control, and Bind the GridView with SqlDataSource Control. Take a look at the following url http://www.asp.net/data-access/tutorials/inserting-updating-and-deleting-data-with-the-sqldatasource-cs

0

精彩评论

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