Hello, we are experiencing the following problem:
we have several records displayed in gridview. we have a line of filters on top of the list. if we use a filter, the list narrows down and displays only matching records. this is correct.
now if we select a record from the filtered list - it selects incorrect record. e.g. if we select 3rd record in the filtered list, it still selects 3rd record in original list (before filter was applied).
here is a simple code to test (it just displays the selected record in a textbox):
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub ASPxGridView1_RowCommand(ByVal sender As Object, ByVal e As DevExpress.Web.ASPxGridView.ASPxGridViewRowCommandEventArgs) Handles ASPxGridView1.RowCommand
If e.CommandArgs.CommandName = "CompanySelect" Then
TextBox1.Text = "[" & e.CommandArgs.CommandArgument & "] "
TextBox1.Text &= CType(e.CommandSource, LinkButton).Text
End If
End Sub
End Class
any help is much appreciated. thanks.