开发者

How to add text to a C# datagrid from a textbox using a button click

开发者 https://www.devze.com 2023-01-15 15:23 出处:网络
How to add text开发者_如何学运维 to a C# datagrid from a textbox using a button clickThe question doesn\'t make any sense please mention your need so that i can give a try, if you just want to add wha

How to add text开发者_如何学运维 to a C# datagrid from a textbox using a button click


The question doesn't make any sense please mention your need so that i can give a try, if you just want to add what you have typed in textbox its very simple create a class, set its property and in gridview add a databound with datakey as class property name, and while you click on the button return the class as a list and set the datasource of the gridview to it and bind it.

0

精彩评论

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