How can we change value of a BoundField of Gridview [modified]
-
Hi all, How can we change the value of a BoundField of Gridview like I have password field in table user_Information and I am storing password in encrypted form. My problem is that when I use following format, the Password field show those password in Encrypted form(i.e. stored in table) but I want to show them in decrypted form. I don't know whether it is possible or not, if yes please let me know. I am using AccessDatasource object to bind the GridView. Thanks in advance.....
-
Hi all, How can we change the value of a BoundField of Gridview like I have password field in table user_Information and I am storing password in encrypted form. My problem is that when I use following format, the Password field show those password in Encrypted form(i.e. stored in table) but I want to show them in decrypted form. I don't know whether it is possible or not, if yes please let me know. I am using AccessDatasource object to bind the GridView. Thanks in advance.....
I'm not sure that I understood correctly, but I suggest using the DataRowBound event of the GridView and replace the values you want.
-^-^-^-^-^- no risk no funk
-
Hi all, How can we change the value of a BoundField of Gridview like I have password field in table user_Information and I am storing password in encrypted form. My problem is that when I use following format, the Password field show those password in Encrypted form(i.e. stored in table) but I want to show them in decrypted form. I don't know whether it is possible or not, if yes please let me know. I am using AccessDatasource object to bind the GridView. Thanks in advance.....
I would convert the boundfield for the password to a template field. something like this: Then make sure your method to DecryptPassword is public so the DataBind can call it. I haven't actually tried to do this, but I think the code above will work. Hope that helps. Ben