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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Storing an arraylist in a cell

Thread ID:





71025 Jan 11,2008 09:14 PM UTC Jan 15,2008 09:32 AM UTC WinForms 3
Tags: GridControl
Philip Bishop
Asked On January 11, 2008 09:14 PM UTC

Can I store and arraylist in a cell?

Fathima Shalini P [Syncfusion]
Replied On January 12, 2008 09:24 AM UTC

Hi Philip,

Thanks for your interest in Syncfusion Products.

We can bind a cell to Arraylist by using the cell type as "Control". Please find the following code that illustratrates this:

cmb = new ComboBox();
ArrayList list = new ArrayList();
list.Add(new MyClass(111));
list.Add(new MyClass(222));
cmb.DataSource = list;
cmb.DisplayMember = "id";
this.gridControl1[1, 1].CellType = "Control";
this.gridControl1[1, 1].Control = this.cmb;

Please have a look at the sample in the following link:


Please let me know if any concerns.


Philip Bishop
Replied On January 14, 2008 04:40 PM UTC

Ok so if I then want to copy that arraylist being held in the grid to a combobox outside the grid how would I get at the data? Do I have to loop through or is there anyway I can then move it from the grid cell to a combobox outside the grid?

Fathima Shalini P [Syncfusion]
Replied On January 15, 2008 09:32 AM UTC

Hi Philip,

Thanks for your patience.

Currently we can retrieve the values of the combobox using loop only. We dont have any specific way to move the data outside the Grid.

Please let me know if any concerns.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon