VB.NET issue - arraylist,objects

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gvi
    New Member
    • Mar 2007
    • 9

    #1

    VB.NET issue - arraylist,objects

    Hello everybody,

    Here is the scenario

    I am calling a webservice which is returning an object type. I need to bind that to the datagrid. So I thought I would ctype the object type to arraylist but I got the error message 'Specified cast not valid'

    I am not sure if I am approaching this in the correct way. Could you pls. help me out ?

    Thanks
  • leoiser
    New Member
    • Jul 2007
    • 41

    #2
    Hi,
    From ur commets I am assuming that you are getting an object or array of objects.You can use objectDatasourc e to link the Object to datagrid.Anothe r way is add the Boundcolumns and put the object's properties name

    hope u got what I mean...
    Thanks

    Originally posted by gvi
    Hello everybody,

    Here is the scenario

    I am calling a webservice which is returning an object type. I need to bind that to the datagrid. So I thought I would ctype the object type to arraylist but I got the error message 'Specified cast not valid'

    I am not sure if I am approaching this in the correct way. Could you pls. help me out ?

    Thanks

    Comment

    Working...