markup:
<asp:GridView ID="GridView1" runat="Server">
<Columns>
<asp:BoundField DataField="status_column" HeaderText="Status" />
<asp:BoundField ...
<asp:BoundField ...
</Columns>
</asp:GridView>
The code:
GridView1.DataSource = _dataSet
DataBind()
The values stored in my database are integers, 1 - 9. Each value has an associated string value that I want to display in my GridView. Example: 1 = "Active"; 2 = "On"; etc. How can I filter the input so that I can display the associated String value instead of the integers from my table?
source
share