Hi all,
I am brand new to vb.net and am trying to write my first app. So far I have a form which has some textboxes at the top. The data for these boxes is retrieved from running a stored procedure using a sql dataadapter. Below that I have a datagrid. The data for thsi is retrieved also by using a stored proc. A parameter is passed in (containing data from one of the above text boxes) to link the data inthe text boxes to the datagrid info. This all works fine. I have a combo box from which the user can select a different record. When the user changes the value in the combo box (by dropping the list down and selecting), the data in the text boxes changes appropriately (I didn't code this, it just happens!). however the data in the datagrid needs to be refreshed to disply the correct row. How do I do this? I've tried adding code to the SelectValueChanged event of the combo box, to say clear the dataset, pass the parm again, re-run the stored proc and set the datagrid to the datsource, but it does nothing.
Any ideas? I would be very grateful.
Thank,
Paula.
I am brand new to vb.net and am trying to write my first app. So far I have a form which has some textboxes at the top. The data for these boxes is retrieved from running a stored procedure using a sql dataadapter. Below that I have a datagrid. The data for thsi is retrieved also by using a stored proc. A parameter is passed in (containing data from one of the above text boxes) to link the data inthe text boxes to the datagrid info. This all works fine. I have a combo box from which the user can select a different record. When the user changes the value in the combo box (by dropping the list down and selecting), the data in the text boxes changes appropriately (I didn't code this, it just happens!). however the data in the datagrid needs to be refreshed to disply the correct row. How do I do this? I've tried adding code to the SelectValueChanged event of the combo box, to say clear the dataset, pass the parm again, re-run the stored proc and set the datagrid to the datsource, but it does nothing.
Any ideas? I would be very grateful.
Thank,
Paula.