Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
805
Some other noobish questions
posted

Ok, so I have UltraCombos in the windows, with data, and responding properly. I'd like to clean them up now. I'm finding the documentation very sparse though, so some guidance would be greatly appreciated!

1) how do I turn off the headers? In our combos we don't really need them. I can't see anything like "header" in the docs that seems relevant.

2) I'm VERY confused about selection of columns from a multi-column source. The examples in the docs do the opposite of what I want, and I can't find any discussion...

Most of our combos have two columns, ID and string. I want the ID to be hidden and the string to be displayed. So following the docs, I did...

           // Bind the combo to a data source.
           
this.ultraCombo1.DataSource = this.dataSet11;
           
this.ultraCombo1.DataMember = "";

           
// Set the ValueMember and DisplayMember to appropriate column keys.
           
this.ultraCombo1.ValueMember   = "ProductID";
           
this.ultraCombo1.DisplayMember = "ProductName";

This doesn't seem to do anything. Both columns still appear in the dropped-down box. And why does this example set the DataMember to ""? I'm not sure I understand that.

In the cases where I DO want more than one column, the docs don't have any examples! Does anyone else have some they could fire to me?

Maury