Hi,
First, i am sorry, i'am newbe with this thing. i 'am geting this error when using sortting with radgrid.
Method 'Public Sub RadGrid2_SortCommand(source As Object, e As Telerik.Web.UI.GridSortCommandEventArgs)' does not have a signature compatible with delegate 'Delegate Sub GridSortCommandEventHandler(source As Object, e As Telerik.WebControls.GridSortCommandEventArgs)'.
Here is some of my code:
<rad:RadGrid runat="server" id="RadGrid2" GridLines="None" Skin="Default"
AutoGenerateColumns="False" OnSortCommand="RadGrid2_SortCommand"
OnSelectedIndexChanged="RadGrid2_SelectedIndexChanged" AllowSorting="True" >
And code behind:
Sub RadGrid2_SortCommand(ByVal [source] As Object, ByVal e As GridSortCommandEventArgs)
Dim tableView As GridTableView = e.Item.OwnerTableView
If e.SortExpression <> "" Then
BindData(Session("thisPIID"), e.SortExpression)
End If
End Sub
Can you please tell me what am i doing wrong here, and how can i fix it.Thanks.
First, i am sorry, i'am newbe with this thing. i 'am geting this error when using sortting with radgrid.
Method 'Public Sub RadGrid2_SortCommand(source As Object, e As Telerik.Web.UI.GridSortCommandEventArgs)' does not have a signature compatible with delegate 'Delegate Sub GridSortCommandEventHandler(source As Object, e As Telerik.WebControls.GridSortCommandEventArgs)'.
Here is some of my code:
<rad:RadGrid runat="server" id="RadGrid2" GridLines="None" Skin="Default"
AutoGenerateColumns="False" OnSortCommand="RadGrid2_SortCommand"
OnSelectedIndexChanged="RadGrid2_SelectedIndexChanged" AllowSorting="True" >
And code behind:
Sub RadGrid2_SortCommand(ByVal [source] As Object, ByVal e As GridSortCommandEventArgs)
Dim tableView As GridTableView = e.Item.OwnerTableView
If e.SortExpression <> "" Then
BindData(Session("thisPIID"), e.SortExpression)
End If
End Sub
Can you please tell me what am i doing wrong here, and how can i fix it.Thanks.