Get text from datagrid cell

  • Thread starter Thread starter MS Newsgroups
  • Start date Start date
M

MS Newsgroups

Hi,

I am new to the datagrid and I am trying to figure out how to get the text
string from the cell when a bound linkbutton is clicked. According to the
documentation, I should the Itemcommand event and should be able to get this
value from

e.items.cells(0).text

For the current string in the first column in the clicked row, but I receive
nothing (empty string)

Any suggestions

Niclas
 
Hi Niclas,
you can get the text by using

Dim buttonColumn As TableCell = e.Item.Cells(0)
Dim buttonColText As String = buttonColumn.Text

Hope this helps..

Thanks,
Arun.
 
Back
Top