Here is my Data Grid:
<asp:DataGrid id="dataGrid1" runat="server">
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="Valid"
DataTextField="Valid"
HeaderText="Enable / Disable"
DataNavigateUrlFormatString="~\examfilemanager\{0}" />
</Columns>
</asp:DataGrid>
I would like to have custom DataTextField
, display Enable
is the value is true
, and Disable
if the value is false
, how can I add this logic in the HyperLinkColumn? Thanks.