Error casting from generic list to IHierarchicalList

2 replies. Last post: February 10, 2011 8:06 AM by Martin Constam
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi!

I am trying to bind a custom object list to a WebGrid by using the ISDataSource. Its exact the same as in example BindingGenericCollection.aspx from
the ISDataSource samples.

I always get the error message:


Unable to cast object of type System.Collections.Generic.List[GridTest1.Customer] to type ISNet.WebUI.DataSource.IHierarchicalList

Can you help me please?

I have attached a piece of code to demonstrate the issue.

Thanks in advance for your help.

Best regards

Martin

1 attachment
All times are GMT -5. The time now is 2:51 PM.
Previous Next