MasterTableView.FilterExpression in a RadGrid in a FormView
I tried to apply a filter to a Radgrid found in a FormView, but apparently the filter is not applied correctly, I am using the following:
((RadGrid)FormView1.FindControl("gvregion")).MasterTableView.FilterExpression = "([Localidad] LIKE '%SANTA%')"; |
((RadGrid)FormView1.FindControl("gvregion")).MasterTableView.Rebind(); |
Check if the property was correctly set will with the following:
Response.Write(((RadGrid)FormView1.FindControl("gvregion")).MasterTableView.FilterExpression); |
But it does not filter properly, displays: "No records to display." There are records that affect the criteria but does not display, anyone can help me?, Thanks.