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.
精彩评论