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. GridView problem please help

GridView problem please help

Scheduled Pinned Locked Moved Web Development
helpdatabasevisual-studiowpfhosting
2 Posts 2 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.
  • P Offline
    P Offline
    papa80
    wrote on last edited by
    #1

    Hello friends First at all happy new year of all of you.All the best in next one.)) Cloud you help me please.I will describe the problem.It seens stupid but i did not use VS from 1 year and just now start it again. So we have GridView inside of it are templates for example label and text box for edit mode which are connected with some db.So the problem is appear when i try to update that data exactly in updating event.After pressing update button in quick watch i see that it is give me old value not what i had change ready!!!For example in label value is 1 and when you press button edit in text box is 1 too but my goal is to be changed to 2 so in text box value is changed to 2 but after pressing of bot ton the value which is extract is 1???Pleas cloud you tell me some body why.Unfortunately the at the moment i am not in-front of my pc but let try the code. string name; name=((TextBox)(gvMain.Rows[e.EditIndex].Cells[1].Control[1])).Text; And result is 1; Please tell me why Now the project on which i work it use net.3.5 can you explain me if there is some changes and why if i catch the text box the value is old one not the value which i already type on it. Thanks in advance.

    when i want to read something good just seat and type it

    S 1 Reply Last reply
    0
    • P papa80

      Hello friends First at all happy new year of all of you.All the best in next one.)) Cloud you help me please.I will describe the problem.It seens stupid but i did not use VS from 1 year and just now start it again. So we have GridView inside of it are templates for example label and text box for edit mode which are connected with some db.So the problem is appear when i try to update that data exactly in updating event.After pressing update button in quick watch i see that it is give me old value not what i had change ready!!!For example in label value is 1 and when you press button edit in text box is 1 too but my goal is to be changed to 2 so in text box value is changed to 2 but after pressing of bot ton the value which is extract is 1???Pleas cloud you tell me some body why.Unfortunately the at the moment i am not in-front of my pc but let try the code. string name; name=((TextBox)(gvMain.Rows[e.EditIndex].Cells[1].Control[1])).Text; And result is 1; Please tell me why Now the project on which i work it use net.3.5 can you explain me if there is some changes and why if i catch the text box the value is old one not the value which i already type on it. Thanks in advance.

      when i want to read something good just seat and type it

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      Try the ASP.NET forum.

      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