I am trying to load a multicolumn C1DropdownControl on my Windows Form. All controls on the form are unbound, so data binding is not an issue. However, I have the following (SQL Server 2000) table from which I need to lookup the values in order to load into the dropdown list:
tblPerson table, related fields:
PersonNumber
PersonName
I need both columns to show in the dropdown, but PersonNumber is the value to be used for the control when SelectedItem.value is inspected.
I have set up a DataReader and related stored procedure to return these values so that I can traverse the reader & load the values into the C1DropdownControl, but the "loading the control" part is what I cannot find a reference or examples of how to do.
Also, is this the best way for me to be going about what I want to do? There are a number of dropdowns on the form so I figured that I should not be keeping connections and/or datasets open for the life of the form, & so this is another reason I wanted to manually load the dropdown.
Thanks in advance for help on this.