Results 1 to 3 of 3

Thread: How to bind the data to a datagrid

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    38

    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.

  2. #2
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    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.

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

    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
  •  



Click Here to Expand Forum to Full Width