This is a migrated thread and some comments may be shown as answers.

How can I change the text and command name of LinkButon per row?

0 Answers 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Warren
Top achievements
Rank 1
Warren asked on 04 Apr 2016, 06:54 AM

Hello,

I want to change the text and command name for the LinkButton per row depending on another cell value. I saw this code for reading cells during binding. So when a read a cell and it means to change the link button how can I do it?

Thanks

Private Sub gvLevel3_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles gvLevel3.ItemDataBound
    If TypeOf e.Item Is GridDataItem Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim cell As TableCell = DirectCast(item("Uniquename"), TableCell)
        Dim value As String = cell.Text
    End If
End Sub

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Warren
Top achievements
Rank 1
Share this question
or