Hi
I have a RadGrid, datbound in code behind using a dataclass to get the data.
I want to implement sorting and paging, but when I turn it on I get the following error in the _ItemCommand.
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
I guess I need to check here that I'm actually looking at a row, If I'm correct how do I do that. If I'm wrong what do I need to do.
This is the start of my code:
Andy
I have a RadGrid, datbound in code behind using a dataclass to get the data.
I want to implement sorting and paging, but when I turn it on I get the following error in the _ItemCommand.
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
I guess I need to check here that I'm actually looking at a row, If I'm correct how do I do that. If I'm wrong what do I need to do.
This is the start of my code:
Protected Sub rgUsers_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgUsers.ItemCommand |
Dim User_ID As Guid = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("UserId") |
Dim CommandName As String = e.CommandName |
Select Case CommandName |
Case "EditUser" |
Andy