Databinding datagridview to textbox

  • Thread starter Thread starter Scotty
  • Start date Start date
S

Scotty

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
 
Scotty said:
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.
 
Back
Top