I have a DevExpress AspGridView on my webpage and I am using the filter row that is included. The problem I am having is that I am changing the value of the display text from an integer to some corresponding string in an array (the integer becomes the array index), however the filter row doesn't sort by the new display text value. When typing something into the filter row, it tries to search for integers rather than strings.
Here is the code used to change the text in the cell
gv.HtmlDataCellPrepared += (sender, e) =>
{
if (e.DataColumn.FieldName == "FOO_STATUS")
{
e.Cell.Text = STATUS[int.Parse(e.GetValue("FOO_STATUS").ToString())];
}
};