I am using c#2010, I have a queried a database and got some results based on the users request, the results are held in a oledbdatareader.
I need to populate a combobox with the text and values... I tried looping though the datareader as follows:
cboEmployees.Items.Add(dr["sname"] + ", " + dr["fname"] );
but i realised that i don't have the ID for the record in there... So I guess that goes into the 'value' part... how is this done?