i have a bit value (Black) i want to display its status in gridview as if its true, the row display \"Yes\", otherwise the row display \"No\", this is my code, but the resul
I don't know your datasource, but if you can evaluate it, do something like this:
<%# GetBit(Eval("BlackBit"))%>
And code-behind:
private string GetBit(object objBit) { if (Convert.ToInt32(objBit) == 1) { return "Yes"; } return "No"; }