I have gridview that i programatically bind to a data-table. one of my column is an hyperlink column that is manually set to show the text "Update" on each row.
I created the following code in the page load event to disable the hyperlink for the appropriate columns:
At the page load event the code is handled well. But when i change pages, a postback occurs and the hyperlinks are all reset to the text "update".
I tried putting the code in the radgrid1.page_index_change event but it still does not work.
I created the following code in the page load event to disable the hyperlink for the appropriate columns:
'Carry out steps to figure if a each report is invoiced or not.
'If invoiced, the update hyperlink is disabled
Dim number_of_reports As Integer = RadGrid1.Items.Count
For i = 0 To number_of_reports - 1
If RadGrid1.Items(i)("status_column").Text = "Not Invoice" Then
RadGrid1.Items(i)(
"update_column").Enabled = False
RadGrid1.Items(i)(
"update_column").Text = "No"
End If
Next
At the page load event the code is handled well. But when i change pages, a postback occurs and the hyperlinks are all reset to the text "update".
I tried putting the code in the radgrid1.page_index_change event but it still does not work.