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.

DataBound Grid with column type as Arraylist

Thread ID:

Created:

Updated:

Platform:

Replies:

19318 Sep 23,2004 08:32 AM Sep 23,2004 10:58 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 23, 2004 08:32 AM

Hi, I am getting a CLR exception "Negative key" when i try to hide a column of type Arraylist in the databoundgrid. Could you let me know what the problem could be. Thanks, Sheela

Administrator [Syncfusion]
Replied On September 23, 2004 10:43 AM

Hi Sheela, that doesn''t ring any bells here what could be wrong. Do you have a small example that demonstrates the problem? I will have to debug into it to find out what might be wrong. I am also not sure if the databound grid does support DataColumn with type ArrayList at all. Can you remove that column from the DataTable before you bind it to the DataBoundGrid? Stefan

Administrator [Syncfusion]
Replied On September 23, 2004 10:58 PM

Hi stefan, thanx for ur response.. I just changed the type of the column to object and then later cast to Arraylist on retrieval. the exception is gone :) Guess grid supports only primitive data types !!! Sheela >Hi Sheela, > >that doesn''t ring any bells here what could be wrong. Do you have a small example that demonstrates the problem? I will have to debug into it to find out what might be wrong. > >I am also not sure if the databound grid does support DataColumn with type ArrayList at all. > >Can you remove that column from the DataTable before you bind it to the DataBoundGrid? > >Stefan >

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.

;