J
John
Hello.
I display the results of an SQL query to a datagrid.
Then I am trying to bind the data of a datagrid to some txtboxes.
Let's say for example that when I select a row, I want the data of the
selected
row to be displayed in the appropriate text boxes.
What I did is the following:
1)Create a DataAdapter
2)Fill a DataSet object
3)Create a table and fill it from the dataset
4)Bind the txtboxes to specific columns of the table.
The problem is the following.
When the text boxes are in the same form as the datagrid, everything works
well.
However, when I tried to put the text boxes in a separate form, it didn't
work.
I tried to call the refresh method, but still nothing.
Am I missing something?
Thnx in advance,
John
I display the results of an SQL query to a datagrid.
Then I am trying to bind the data of a datagrid to some txtboxes.
Let's say for example that when I select a row, I want the data of the
selected
row to be displayed in the appropriate text boxes.
What I did is the following:
1)Create a DataAdapter
2)Fill a DataSet object
3)Create a table and fill it from the dataset
4)Bind the txtboxes to specific columns of the table.
The problem is the following.
When the text boxes are in the same form as the datagrid, everything works
well.
However, when I tried to put the text boxes in a separate form, it didn't
work.
I tried to call the refresh method, but still nothing.
Am I missing something?
Thnx in advance,
John