We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Multiolumncombobox

Is it possible to populate a Multicolumncombobox whithout attach it to a dataset ?

I want to separate DataBase access from GUI.
Thank you
Maria Castoro


2 Replies

MU Murugan Syncfusion Team June 8, 2007 06:17 PM UTC

Hi Mario,

Is it possible to populate a Multicolumncombobox whithout attach it to a dataset ?

Sure. It is possible to populate MultiColumnComboBox without attach it to a dataset. We could use ArrayList as a DataSource to populate MultiColumnComboBox.

[Code]
ArrayList al = new ArrayList();

al.Add(new clsSalary("Komes", 3500, 250, 3250));
al.Add(new clsSalary("Jane", 4800, 400, 4400));

this.multiColumnComboBox1.DataSource = al;
this.multiColumnComboBox1.DisplayMember = "eGrossPay";
this.multiColumnComboBox1.ValueMember = "eName";

[Sample]
http://websamples.syncfusion.com/samples/Tools.Windows/F62149/Main.htm

Please refer to this and let me know if it helps you.

Thank you for your interest in Syncfusion products.

Regards,
Murugan P.S




MC Maria Catsoro June 11, 2007 10:33 AM UTC

Thankyou very much

By
Maria

>Hi Mario,

Is it possible to populate a Multicolumncombobox whithout attach it to a dataset ?

Sure. It is possible to populate MultiColumnComboBox without attach it to a dataset. We could use ArrayList as a DataSource to populate MultiColumnComboBox.

[Code]
ArrayList al = new ArrayList();

al.Add(new clsSalary("Komes", 3500, 250, 3250));
al.Add(new clsSalary("Jane", 4800, 400, 4400));

this.multiColumnComboBox1.DataSource = al;
this.multiColumnComboBox1.DisplayMember = "eGrossPay";
this.multiColumnComboBox1.ValueMember = "eName";

[Sample]
http://websamples.syncfusion.com/samples/Tools.Windows/F62149/Main.htm

Please refer to this and let me know if it helps you.

Thank you for your interest in Syncfusion products.

Regards,
Murugan P.S



Loader.
Live Chat Icon For mobile
Up arrow icon