How to add text to a C# datagrid from a textbox using a button click
From stackoverflow
-
in the button's click event handler, add a row (assuming you want to add a row) to the datagrid with the contents from the textbox.
-
You need to give more information. Do you have a DataTable bound to the DataGrid already? Have you created columns in the DataTable? Are you sure it's not actually a DataGridView (the .net 2.0 + version of DataGrid)? Is it ASP or Winforms?
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.