Results 1 to 4 of 4

Thread: DataGrid1.DataBind() i am getting this error

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    38

    DataGrid1.DataBind() i am getting this error

    For the following: DataGrid1.DataBind() i am getting this error:
    DataGrid with id 'DataGrid1' could not automatically generate any columns from the selected data source.


    I see 1 record in the add watch,under result1 for result, i want to see the result to be binded with dategrid1

    property autogenerate column is also true for Datagrid1



    Dim myobj As Categories.CategoriesService = New Categories.CategoriesService

    Dim result1 As Categories.ListResults

    result1 = myobj.getSubCategoryList("MOT-V300", "GSM", "jamaica", 294, 1, 1)

    DataGrid1.DataSource = result1.results
    DataGrid1.DataBind()

    Thank you very much for the information.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: DataGrid1.DataBind() i am getting this error

    What is ListResults?

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    38

    Re: DataGrid1.DataBind() i am getting this error

    Hello Mendhak,

    All i am doing is using a wsdl xml method to bring data back from the clients website, and i am just trying to see what came.

    Categories.ListResults is justa method, which brings the results back which i can see via add or quick watch, i see one record is there: for (0) i see 6 fields data and for total i see 14.

    so, both the above information is coming, do i need to extract the (0) data and bind it to the datagrid.
    ****************************
    Dim myobj As Categories.CategoriesService = New Categories.CategoriesService

    Dim result1 As Categories.ListResults

    result1 = myobj.getSubCategoryList("MOT-V300", "GSM", "jamaica", 294, 1, 1)

    DataGrid1.DataSource = result1.results
    DataGrid1.DataBind()
    *************************************

    Thank you very much.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: DataGrid1.DataBind() i am getting this error

    You haven't been clear about this in any of your threads. What are the data types being returned? In other words, how do you know that you can bind to the results property/collection of the ListResult object?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width