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

  • Thread starter Thread starter Daniel Bass
  • Start date Start date
D

Daniel Bass

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??
 
Dim linkbtnMsgNumber As LinkButton =
db_grid.SelectedItem.Cells(0).Controls(0)

Dim szMsgNumber = linkbtnMsgNumber.Text
 
Back
Top