Get text from datagrid cell

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
 
N

Niks

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top