开发者

How to save datagridview columns with datas in sql server database

开发者 https://www.devze.com 2023-01-04 02:24 出处:网络
Scenario is.... I have to select a row in datagridview and sa开发者_如何学运维ve those datas to database.It can any number of columns present. how to achieve this..Good way to achieve this is to creat

Scenario is.... I have to select a row in datagridview and sa开发者_如何学运维ve those datas to database.It can any number of columns present. how to achieve this..


Good way to achieve this is to create XML string of all modified rows.

Than pass this string to Stored procedure.

In stored procedure use OpenXML which allow you to update multiple rows easily.

0

精彩评论

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