retrieving text from a selected data grid row cell...

Discussion in 'ASP .Net' started by Daniel Bass, Jul 8, 2003.

  1. Daniel Bass

    Daniel Bass Guest

    this was working

    Dim szMsgNumber = db_grid.SelectedItem.Cells(0).Text



    until i changed the first column (at index 0) to a ASP:ButtonColumn from a
    boundcolumn...



    now it just returns blank text every time...



    how do i retrieve text from a buttoncolumn cell??
     
    Daniel Bass, Jul 8, 2003
    #1
    1. Advertisements

  2. Daniel Bass

    Daniel Bass Guest

    Dim linkbtnMsgNumber As LinkButton =
    db_grid.SelectedItem.Cells(0).Controls(0)

    Dim szMsgNumber = linkbtnMsgNumber.Text

    "Daniel Bass" <> wrote in message
    news:...
    > this was working
    >
    > Dim szMsgNumber = db_grid.SelectedItem.Cells(0).Text
    >
    >
    >
    > until i changed the first column (at index 0) to a ASP:ButtonColumn from a
    > boundcolumn...
    >
    >
    >
    > now it just returns blank text every time...
    >
    >
    >
    > how do i retrieve text from a buttoncolumn cell??
    >
    >
     
    Daniel Bass, Jul 8, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Maheshkumar.R
    Replies:
    1
    Views:
    5,599
    Charlie@NISH
    Aug 12, 2005
  2. Mike

    keep selected row in grid view

    Mike, Aug 10, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    624
    lee whitbeck
    Aug 10, 2007
  3. munther
    Replies:
    2
    Views:
    694
    =?Utf-8?B?SmFtZXMgUGFnZQ==?=
    Sep 12, 2007
  4. Daniel Bass

    --- retrieving text from a selected datagrid cell ---

    Daniel Bass, Jul 8, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    205
    Daniel Bass
    Jul 8, 2003
  5. Empire City
    Replies:
    3
    Views:
    630
    Empire City
    Apr 30, 2004
  6. Thomasa Gregg
    Replies:
    1
    Views:
    312
    Eliyahu Goldin
    Jun 9, 2004
  7. D
    Replies:
    0
    Views:
    494
  8. Paul

    wrap text within cell-not working with data grid

    Paul, Nov 24, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    178
Loading...