--- retrieving text from a selected datagrid 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, which is, i gather not the
text, but content is data bound to the field i specify...
 
Dim linkbtnMsgNumber As LinkButton =
db_grid.SelectedItem.Cells(0).Controls(0)

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

Dim szMsgNumber = linkbtnMsgNumber.Text
 
Back
Top