Hi,
Try to use this:
Dim mhcppro As DataView = DsPAPresciptionby211.tblCo
The way you do it now adds the table to the dataview. Given that you do not want any sorting, filtering or other exotic methods it is easier to grab the default view from the table object.
Using DataBindings in this way is a valid approach. In some cases I would agree with Protuhj, if you need additional processing based on the selected value of your combobox. But if this is straightforward display of what's selected, databindings is valid.
Good luck on your project!
Grtz.©
D.
Main Topics
Browse All Topics





by: ProtuhjPosted on 2009-09-02 at 11:24:57ID: 25244001
Why don't you just add an event handler for one of the ComboBox's events (SelectedIndexChanged or SelectedValueChanged) and then set the label's text in that event?