Is there a way to programmatically send information from a text box into specific columns in a DataGridView?
I triedand it obviously does not work.vb.net Code:
Column1.Text = TextBox1.Text
Thanks
Printable View
Is there a way to programmatically send information from a text box into specific columns in a DataGridView?
I triedand it obviously does not work.vb.net Code:
Column1.Text = TextBox1.Text
Thanks
Consider where you actually want the text to appear. It's not just in the column, is it? It's in a specific cell in that column. You need to specify the appropriate row in the grid, then specify the appropriate cell in that row, then set its Value property, e.g.vb.net Code:
myDataGridView.Rows(0).Cells(0).Value = myTextBox.Text
Thanks, jmcilhinney.
By the way, do you have any tutorials on DataGridViews that you would recommend? I've looked at a couple, but the ones I've come into aren't very explanatory.
Thanks
Check out this link. There is a VERY nice FAQ document and also some examples. I have that document on my desktop for safe keeping. :)
http://social.msdn.microsoft.com/For...b-e76ac21c1cd4
also search through a few of my threads about datagridview