How can I access the value of GridCheckBox column during ItemDataBound Event?
I need access the value and if condition is true hide delete link button. I have tried many different ways with no luck so far.
Here is my code
Thank you for the help.
I need access the value and if condition is true hide delete link button. I have tried many different ways with no luck so far.
Here is my code
Protected Sub PeoplegridCheckrow(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) If TypeOf e.Item Is GridDataItem Then Dim dataItem As GridDataItem = CType(e.Item, GridDataItem) Dim relationship As String = dataItem("Relationship").Text Dim bJournalName As Boolean = (Boolean.Parse(dataItem("UseAsJournalName").Text)) If relationship = "Family Member" And bJournalName = True Then CType(dataItem("DeleteButton").Controls(0), LinkButton).Visible = False End If End If End SubThank you for the help.