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.
Unfortunately, activation email could not send to your email. Please try again.

Multiolumncombobox

Thread ID:

Created:

Updated:

Platform:

Replies:

62149 Jun 8,2007 09:50 AM Jun 11,2007 06:33 AM Windows Forms 2
loading
Tags: Tools
Maria Catsoro
Asked On June 8, 2007 09:50 AM

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


Murugan [Syncfusion]
Replied On June 8, 2007 02:17 PM

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



Maria Catsoro
Replied On June 11, 2007 06:33 AM

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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;