Results 1 to 3 of 3

Thread: what is the .text property of a column in a datagrid?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2004
    Location
    Philippines
    Posts
    125

    Question what is the .text property of a column in a datagrid?

    hi! i'm wondering if anybody knows the .text property of a column in a datagrid?

    i've searched the internet as well as the forum but unfortunately i didn't found any answer...

    i'm trying to retrieve the content of a cell in my datagrid and i don't know how to do it.

    please advise me on this soon! thanks and i'm counting on you guys!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    VB Code:
    1. DataGrid1.Item(rownum, colnum).ToString()

  3. #3
    Junior Member
    Join Date
    Jun 2004
    Posts
    29

    Smile Indexer is wht you are looking for

    The rows and columns are as collection in the new grid.
    DataGrid1.Item(rownum, colnum).ToString()

    The above code uses the indexer of the grid. The indexer is that helps you get in the text in a particular cell. The grid architecture works this way now not rows and columns just the indexer.
    Give me a place to stand and I will move the Earth

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