Hi. I have a grid that is being created entirely in the code behind, and I need to refer to it in the item command handler. Is there a way that I can make something like this work?:
Public
Sub EmployeesGrid_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles
EmployeesGrid.ItemCommand
variable = EmployeesGrid.Items(rowIndex 1)("column").Text
EmployeesGrid.Rebind()
End Sub
When the grid is created statically this code isn't a problem, but when it's created programmatically, I get an object not set to an instance of an object error.