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

Gridview problem

Scheduled Pinned Locked Moved ASP.NET
helpcsswpfwcftutorial
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.
  • D Offline
    D Offline
    demouser743
    wrote on last edited by
    #1

    Hi all, I am designing my program like this. I am having a text box, button and a grid view on my page. When i entered some value in text box and click on button the value is binding to grid view. In the grid view i am having only one field as Name and option as select. When i click on select i am displaying the corresponding user in the text box. What i need is if i edit the text on the text box and click on the same button again the value should replace the old one. Example TextBox ----------- Button Gridview Name Dora select Xyz Select When i click on select at xyz i am displaying it in text box. If i would like to replace it with some name like ABC what to do.. Please help me..

    P A 2 Replies Last reply
    0
    • D demouser743

      Hi all, I am designing my program like this. I am having a text box, button and a grid view on my page. When i entered some value in text box and click on button the value is binding to grid view. In the grid view i am having only one field as Name and option as select. When i click on select i am displaying the corresponding user in the text box. What i need is if i edit the text on the text box and click on the same button again the value should replace the old one. Example TextBox ----------- Button Gridview Name Dora select Xyz Select When i click on select at xyz i am displaying it in text box. If i would like to replace it with some name like ABC what to do.. Please help me..

      P Offline
      P Offline
      padmanabhan N
      wrote on last edited by
      #2

      you can refer to my article : GridView all in one[^]

      Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

      1 Reply Last reply
      0
      • D demouser743

        Hi all, I am designing my program like this. I am having a text box, button and a grid view on my page. When i entered some value in text box and click on button the value is binding to grid view. In the grid view i am having only one field as Name and option as select. When i click on select i am displaying the corresponding user in the text box. What i need is if i edit the text on the text box and click on the same button again the value should replace the old one. Example TextBox ----------- Button Gridview Name Dora select Xyz Select When i click on select at xyz i am displaying it in text box. If i would like to replace it with some name like ABC what to do.. Please help me..

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        Yes ... It is trivial... First of all let me know are you storing the data into database ? If the data is in the database, just update the value when user clicks on the button after updating the data, and rebind the Gridview to reflect the update. :)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Microsoft Bing MAP using Javascript
        CLR objects in SQL Server 2005
        Uncommon C# Keywords
        /xml>

        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