|
-
Jun 15th, 2009, 08:50 PM
#1
[RESOLVED] DataGridView
Is there a way to programmatically send information from a text box into specific columns in a DataGridView?
I tried
vb.net Code:
Column1.Text = TextBox1.Text
and it obviously does not work.
Thanks
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Jun 15th, 2009, 08:55 PM
#2
Re: DataGridView
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
-
Jun 16th, 2009, 11:35 AM
#3
Re: DataGridView
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
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Jun 17th, 2009, 01:26 PM
#4
Fanatic Member
Re: DataGridView
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
My.Settings.Signature = String.Empty
-
Jun 17th, 2009, 01:29 PM
#5
Addicted Member
Re: DataGridView
also search through a few of my threads about datagridview
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|