I have a radgrid the column is a decimal value 1 or 0,
I have code in ItemDataBound to change 1 to Yes and 0 to No. everything is fine. But when do the filter, Nomattter I put Yes or No as filter, everything returned.
Please help
I have code in ItemDataBound to change 1 to Yes and 0 to No. everything is fine. But when do the filter, Nomattter I put Yes or No as filter, everything returned.
GridDataItem item = (GridDataItem)e.Item;
if (item["myfield"].Text == "1")
{
item["myfield"].Text = "Yes"
}
else
{
item["myfield"].Text = "No"
}