Issue pulling data

BJEaton79

New member
Joined
Jan 12, 2011
Messages
2
Programming Experience
1-3
Hi, New to the forum and somewhat new to VB.net and .net for that matter. I'm working on a program that pulls data from two tables and performs calculations utilizing that data and some user input. I'm having a weird issue where this line of code is retrieving the wrong data from one of the tables on some occasions.
VB.NET:
FormData.VLC1 = CSng(EngineDBDataSet.Tables(0).Rows(UnitComboBox.SelectedIndex).Item("Vlc1").ToString())

Thanks in advance,
Brian
 
I should clarify the combobox works as expected for a few of the rows but when row index 0 is selected the data either doesn't update to reflect the data in the first row or in some cases pulled data from the wrong column.
 
Back
Top