Binding Data to a text box C# VS.2005

J

Jason

Hello,

I've a simple form, in which I've included a datagrid and for testing
purposes I'm using the Northwind DB. Basically in my datagrid I'm showing
the whole employee table. I've managed to put a text box onto the form and
I'm able to bind the employee's ID to that text box.

since each row contains many cells, I want to give the the user the ability
to just click on a botton that will open a second form, and display each
cell in that row. The problem is when I try to bind to the text box, it
never shows what the current row is on form 1. It always shows row 1.

any ideas what I'm doing wrong, or how to fix this?
 
J

John B

Jason said:
Hello,

I've a simple form, in which I've included a datagrid and for testing
purposes I'm using the Northwind DB. Basically in my datagrid I'm showing
the whole employee table. I've managed to put a text box onto the form and
I'm able to bind the employee's ID to that text box.

since each row contains many cells, I want to give the the user the ability
to just click on a botton that will open a second form, and display each
cell in that row. The problem is when I try to bind to the text box, it
never shows what the current row is on form 1. It always shows row 1.

any ideas what I'm doing wrong, or how to fix this?
What is the code you are using to bind to your textbox.
You would need some sort of "current" property on your bindingsource.

JB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top