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. Dynamic Template control and value persistence

Dynamic Template control and value persistence

Scheduled Pinned Locked Moved ASP.NET
helpcssquestion
5 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.
  • S Offline
    S Offline
    Shivan Nandan
    wrote on last edited by
    #1

    Hi friends I have created a gridview using ITemplate to generate textboxes in cells and to display the data. The grid is bound using a datatable in PreRender event. On Page refresh the modified value gets replaced by the existing value from datatable. If I do not bind the gridview in each refresh, the textboxes gets vanish from the gridview. Can any one help me to overcome this problem. Does viewstate will have any role in this? Thanks in advance

    Shivanandan C V

    S A 2 Replies Last reply
    0
    • S Shivan Nandan

      Hi friends I have created a gridview using ITemplate to generate textboxes in cells and to display the data. The grid is bound using a datatable in PreRender event. On Page refresh the modified value gets replaced by the existing value from datatable. If I do not bind the gridview in each refresh, the textboxes gets vanish from the gridview. Can any one help me to overcome this problem. Does viewstate will have any role in this? Thanks in advance

      Shivanandan C V

      S Offline
      S Offline
      Shivan Nandan
      wrote on last edited by
      #2

      Hey Nobody is there to help me? Please give any suggetions atleast. Thanks

      Shivanandan C V

      A 1 Reply Last reply
      0
      • S Shivan Nandan

        Hey Nobody is there to help me? Please give any suggetions atleast. Thanks

        Shivanandan C V

        A Offline
        A Offline
        Ashfield
        wrote on last edited by
        #3

        Everyone here is unpaid, we answer questions as and when we can. If you have not received an answer it is because nobody who knows the answer has read it.

        Bob Ashfield Consultants Ltd Proud to be a Code Project MVP

        1 Reply Last reply
        0
        • S Shivan Nandan

          Hi friends I have created a gridview using ITemplate to generate textboxes in cells and to display the data. The grid is bound using a datatable in PreRender event. On Page refresh the modified value gets replaced by the existing value from datatable. If I do not bind the gridview in each refresh, the textboxes gets vanish from the gridview. Can any one help me to overcome this problem. Does viewstate will have any role in this? Thanks in advance

          Shivanandan C V

          A Offline
          A Offline
          April Fans
          wrote on last edited by
          #4

          That's right. If there is no value, the gridview will disappear from gui. You can try to set EnableViewState="false".

          April Comm100 - Leading Live Chat Software Provider

          S 1 Reply Last reply
          0
          • A April Fans

            That's right. If there is no value, the gridview will disappear from gui. You can try to set EnableViewState="false".

            April Comm100 - Leading Live Chat Software Provider

            S Offline
            S Offline
            Shivan Nandan
            wrote on last edited by
            #5

            Thanks for you reply. Is there any event in which, the typed value on the textbox is accessible? So that I can update the data table from that. Then on rebinding I will get the last typed value again. Thanks

            Shivanandan C V

            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