Displaying result set using a data grid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pramodhegde
    New Member
    • Sep 2007
    • 8

    Displaying result set using a data grid

    Hi,


    I have a result set, which is in the form of a list of strings. I want to display it on the application using a gridview. If i bind the list as a source for the gridview, the result is displayed as the length of each string.

    Can you help me out here. Its not necessary that i display it in the gridview itself. It should be shown on the application after the operation, thats it
  • VBPhilly
    New Member
    • Aug 2007
    • 95

    #2
    Originally posted by Pramodhegde
    Hi,


    I have a result set, which is in the form of a list of strings. I want to display it on the application using a gridview. If i bind the list as a source for the gridview, the result is displayed as the length of each string.

    Can you help me out here. Its not necessary that i display it in the gridview itself. It should be shown on the application after the operation, thats it
    correct me if i'm wrong but you have a list of strings (presumably from a Listbox control), that you need to bind to a gridview?

    Comment

    • Pramodhegde
      New Member
      • Sep 2007
      • 8

      #3
      Originally posted by VBPhilly
      correct me if i'm wrong but you have a list of strings (presumably from a Listbox control), that you need to bind to a gridview?


      I have a list of strings (List(Of String) ). And i need to bind to a gridview. I'm doing this

      Code:
      gridview.DataSource = stringList

      But I'm getting only string lengths instead of the content.

      Comment

      Working...