Hi,
I have declared BindData as:
Private Sub BindData()
'hfSearchText has the search string returned from the grid
If hfSearchText.Value <> "" Then
EntityDataSource1.Select += " where " & hfSearchText.Value
End If
Dim dv As DataView = DirectCast(EntityDataSource1.[Select](New DataSourceSelectArguments()), DataView)
'hfSort has the sort string returned from the grid
If hfSort.Value <> "" Then
dv.Sort = hfSort.Value
End If
MySearch.DataSource = dv
Try
MySearch.DataBind()
Catch ex As Exception
'If databinding threw execept bc current
'page index is > than available page index
MySearch.PageIndex = 0
MySearch.DataBind()
Finally
'Select the first row returned
If MySearch.Rows.Count > 0 Then
MySearch.SelectedIndex = 0
End If
End Try
End Sub
Unfortunately, I receive the error message in my question title. Does DataSourceSelectArguments require additional parameters?
Thanks for your help and guidance. Sid