i am retrieving values from database. password column is encrypted and stored in database. but now i want to display my decrypted password in the gridview. (ie) original text, can anybody suggest for this issue.
Ref Image
https://imgur.com/a/7btJVIt
<asp:GridView ID="Griduserlist" runat="server" HeaderStyle-BackColor="#333333" gridline="none" HeaderStyle-ForeColor="White" CssClass="gridviewtable"
HeaderStyle-Height="40px" RowStyle-Height="40px" AlternatingRowStyle-BackColor="#F5F5F5" AutoGenerateColumns="False" HeaderStyle-CssClass="GridHeader"
DataKeyNames="UserName" OnRowDataBound="Griduserlist_RowDataBound">
<Columns>
<asp:TemplateField HeaderText="S.No" ItemStyle-HorizontalAlign="Center" >
<ItemTemplate>
<%#Container.DataItemIndex+1 %>
</ItemTemplate>
<ItemStyle Width="32px" />
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:TemplateField>
<asp:BoundField DataField ="UserName" HeaderText="User Name" />
<asp:BoundField DataField ="UserPass" HeaderText="Password" />
<asp:BoundField DataField ="UserType" HeaderText="User Type" />
<asp:BoundField DataField ="DoneOn" HeaderText="Done On" />
<asp:BoundField DataField ="DoneBy" HeaderText="Done By" />
<asp:TemplateField HeaderText="Action">
<ItemTemplate>
<asp:LinkButton ID="lnkeditpass" ToolTip="Edit" OnClick="lnkeditpass_Click" CssClass=" editimg dis dis_btn dis_large" runat="server"> </asp:LinkButton>
<asp:LinkButton ID="lnkdeactive" ToolTip="Deactive" OnClick="lnkdeactive_Click" CssClass="deactiveimg dis dis_btn dis_large" runat="server">C</asp:LinkButton>
<asp:LinkButton ID="lnkdeluser" ToolTip="Delete" OnClick="lnkdeluser_Click" CssClass="delimg dis dis_btn dis_large" runat="server">C</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
private void BindGridOnLoad()
{
common View = new common();
Griduserlist.DataSource = View.getUserList();
Griduserlist.DataBind();
}