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.
Re: DataGrid1.DataBind() i am getting this error
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.
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?