Hi. I'm trying to set a filter expression on a GridHyperLinkColumn in my codebehind. From what I've read, this isn't possible. Here is part of my code:
fStr = Request.Params["firstName"];
lStr = Request.Params["lastName"];
rgPeople.MasterTableView.FilterExpression = "([firstName] LIKE '%" + fStr + "%') ";
GridHyperLinkColumn column = rgPeople.MasterTableView.GetColumnSafe("firstname");
column.CurrentFilterFunction = GridKnownFunction.Contains;
column.CurrentFilterValue = fStr;
rgPeople.MasterTableView.Rebind();
I understand they are two different types, and casting doesn't work either. It works on GridColumn fine. Is there a work around for this?
Daniel
fStr = Request.Params["firstName"];
lStr = Request.Params["lastName"];
rgPeople.MasterTableView.FilterExpression = "([firstName] LIKE '%" + fStr + "%') ";
GridHyperLinkColumn column = rgPeople.MasterTableView.GetColumnSafe("firstname");
column.CurrentFilterFunction = GridKnownFunction.Contains;
column.CurrentFilterValue = fStr;
rgPeople.MasterTableView.Rebind();
I understand they are two different types, and casting doesn't work either. It works on GridColumn fine. Is there a work around for this?
Daniel