469,649 Members | 1,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,649 developers. It's quick & easy.

Databinding datagridview to textbox

Hi,

I am a beginner,

like to working with ado net
I have a datagridview

If i selecting a row in the datagrid i want to have returning the selected
data into a textbox "name" for example "from the column "name" "

Hope someone can help me

Thanks in advance
Marc
Aug 6 '06 #1
2 2201

Scotty wrote:
Hi,

I am a beginner,

like to working with ado net
I have a datagridview

If i selecting a row in the datagrid i want to have returning the selected
data into a textbox "name" for example "from the column "name" "

Hope someone can help me

Thanks in advance
Marc
Use DataBindings.

Something like:

textBox1.DataBindings.Add("Text", DataGridView.DataSource, "name")

B.

Aug 7 '06 #2
Scotty,

Have a look at this sample,
http://www.vb-tips.com/dbpages.aspx?...f-587f730fa118

I hope this helps,

Cor
"Scotty" <xx****@nothing.beschreef in bericht
news:u9**************@TK2MSFTNGP04.phx.gbl...
Hi,

I am a beginner,

like to working with ado net
I have a datagridview

If i selecting a row in the datagrid i want to have returning the selected
data into a textbox "name" for example "from the column "name" "

Hope someone can help me

Thanks in advance
Marc

Aug 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Colin Robinson | last post: by
1 post views Thread by Charles Bazi | last post: by
3 posts views Thread by Peter | last post: by
4 posts views Thread by John Wright | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.