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

1 posts, 0 answers
  1. Warren
    Warren avatar
    61 posts
    Member since:
    Aug 2013

    Posted 04 Apr Link to this post

    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

Back to Top