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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Benjamin KemnerPosted Jul 14, 2011, 1:48 AM
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