I have a radgrid that has 10 columns. What I need to do is check a name in column 8 and if the name field is blank I want to turn off the link buttons that sit in columns 9 and 10. Here is what I have that I got off a telerik help site but I cannot get at the names to work to turn off the linkbuttons. However below does not thourhg an error but when I try to assign the text nothing happens??
Protected Sub myGridPositions_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles myGridPositions.ItemDataBound
For Each item As GridDataItem In myGridPositions.Items
Dim name As TableCell = DirectCast(item("strFullName"), TableCell)
If name.Text = Nothing Then
turn off link buttons in columns 9, 10.
End If
Next
End Sub
Protected Sub myGridPositions_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles myGridPositions.ItemDataBound
For Each item As GridDataItem In myGridPositions.Items
Dim name As TableCell = DirectCast(item("strFullName"), TableCell)
If name.Text = Nothing Then
turn off link buttons in columns 9, 10.
End If
Next
End Sub