Hi,
I have taken over a project that has passed through 5+ developers all of which I don't have access to. On the form for this project there are 12+ Comboboxes that are populated from XML data and then based on the selection poupulate a lable with the matching Code. For example there are two ways the Combobox lists are populated. On the screen you see the DisplayMember in the ComboBox for your selection and the ValueMember in a Lable on the form, but when you print the form it shows the ValueMember for both. I need it to print like it is on the screen. Any ideas or suggestions?
//Load lookup dataset
dsLookups = new System.Data.DataSet("Lookups");
String dsFilename = @".\Schema\DropDownLookups.xml";
dsLookups.ReadXml(dsFilename);
//Load lists
InitializeCBL( cblHair, "HairColor");
InitializeCBL( cblEyes, "EyeColor");
//Populates the the ComboBox on the form
System.Data.DataSet dsOffenses =
new System.Data.DataSet("Offenses");
dsFilename = @".\Schema\Offenses.xml";
dsOffenses.ReadXml(dsFilename);
IncidentOffense.DataSource = dsOffenses;
IncidentOffense.DisplayMember= "row.dept_code_desc";
IncidentOffense.ValueMember = "row.ucr_code";