Hi All,
I have a textbox.When a write some text into the text box and click add button it should add into the grid view where i need the functionalities like edit and delete.
Please some one help on this please!!!
Thanks,
Prasant
How to add the values into Grid View
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Benjamin KemnerRank #7,492 · 240 reputationPosted Jul 13, 2011, 9:48 PM EDT
theDataGrid.Columns.Add("myColumn", "My Column");
theDataGrid.Rows.Add();
theDataGrid.Rows[0].Cells["myColumn"].Value = textBox1.Text;
This is the manual way. If you use the grid to manipulate values you really should think about databinding.
Best regards,
Benjamin