|
-
Apr 27th, 2006, 03:30 PM
#1
Thread Starter
Member
How to bind the data to a datagrid
I have the following i am able to see the data under reponse.write, please can you help me bind the data to a datagrid(datagrid1)
result1 = myobj.getSubCategoryList("MOT-V300", "GSM", "jamaica", 294, 1, 1)
Dim i As Integer
For i = 0 To result1.results.GetLength(0) - 1
With result1.results(i)
Response.Write(.description)
Response.Write(.fatherId)
Response.Write(.id())
Response.Write(.lastLevel())
Response.Write(.orderBy())
Response.Write(.systemcat())
End With
Next
Thank you very much for the information.
-
Apr 27th, 2006, 03:35 PM
#2
Frenzied Member
Re: How to bind the data to a datagrid
You need to bind the datagrid to something. Why don't you take your object and write it out to a datatable with columns defined for each of your object fields and bind the datagrid to that?
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
-
Apr 28th, 2006, 03:49 AM
#3
Re: How to bind the data to a datagrid
Show getSubCategoryList()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|