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

DataBound Grid with column type as Arraylist

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

2 Replies

AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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 >

Loader.
Live Chat Icon For mobile
Up arrow icon