开发者

Synchronizing datagridview and database 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜