Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How can we change value of a BoundField of Gridview [modified]

How can we change value of a BoundField of Gridview [modified]

Scheduled Pinned Locked Moved ASP.NET
help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bajrang Singh
    wrote on last edited by
    #1

    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.....

    U K 2 Replies Last reply
    0
    • B Bajrang Singh

      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.....

      U Offline
      U Offline
      Urs Enzler
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • B Bajrang Singh

        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.....

        K Offline
        K Offline
        kubben
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups