StrataFrame Forum

ComboBox query

http://forum.strataframe.net/Topic16630.aspx

By Ger Cannoll - 5/27/2008

I am trying to set up a combobox. Have the Strataframe Combo Box dropped on form. have set to Business Object and specified the method to populate. When I run, and click on Combo, I get blanks in the Combobox. I think it is displaying the records (just showing Blaknks) but not showing the required fields. I have put two field names into the MultiColumn Column property but must be missing somnething ....
By Greg McGuffey - 5/27/2008

Did you set the property on the combo that tells it to use multi columns (UseMultiColumns)?
By Ger Cannoll - 5/28/2008

Hi Greg

Yes, I have the MultiColumn proerty set.

Is the columns collection the only property I need to fill to tell it the fields ?

There also a property called Item, whicj is highlighted with Collection...but have not put anything inot it.

By Greg McGuffey - 5/28/2008

You don't need to worry about the Items collection. This is what you'd use to fill the combo manually, rather than using SF to fill it for you.



I'd look into three other things:

- Did you setup the PopulationDataSourceSettings correctly? You need to set the Display Member Format String (indicating what is displayed when the drop down is closed) and the Drop-Down Display Format String (indicating what is displayed when the combo is opened).

- Did you set the ColumnSeparator property? The ColumnSeparator should match the character used in the Drop-DownDisplay Format String (e.g. if you set this to "{0}|{1}", then the ColumnSeparator would be "|").

- Have you checked that the Fill method is really filling the BO as you expect?



To check the last, set a break after the FillDataTable call and use the data table visualizer to check that the data is being returned correctly.



Check out the Multicolumn sample provided with the SF install also. It pretty clearly shows how to use this feature.