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

Gridview

Scheduled Pinned Locked Moved ASP.NET
tutorial
5 Posts 5 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.
  • K Offline
    K Offline
    kiran p2softech
    wrote on last edited by
    #1

    Hi, "TextBox txtNewName=(TextBox)GridView1.FooterRow.FindControl("txtNewName"); " Iam using above code to capture the text of textbox but it was not working please tell any how to capture the childtextbox value of gridview

    kirankumar

    S B F M 4 Replies Last reply
    0
    • K kiran p2softech

      Hi, "TextBox txtNewName=(TextBox)GridView1.FooterRow.FindControl("txtNewName"); " Iam using above code to capture the text of textbox but it was not working please tell any how to capture the childtextbox value of gridview

      kirankumar

      S Offline
      S Offline
      squattyarun
      wrote on last edited by
      #2

      Dim sText as string For Each row As GridViewRow In gvAttachFile.Rows as string For Each = CType(row.FindControl("textBox1"), textBox).Text Next Make some changes in syntax for c#.:->

      Arun Singh Noida.

      1 Reply Last reply
      0
      • K kiran p2softech

        Hi, "TextBox txtNewName=(TextBox)GridView1.FooterRow.FindControl("txtNewName"); " Iam using above code to capture the text of textbox but it was not working please tell any how to capture the childtextbox value of gridview

        kirankumar

        B Offline
        B Offline
        Bino B
        wrote on last edited by
        #3

        try this GridViewRow grow; string ename = (grow.FindControl("txtName") as TextBox).Text hope it will flicker the bulb, at least

        Cheers Bino www.codepal.co.nr

        1 Reply Last reply
        0
        • K kiran p2softech

          Hi, "TextBox txtNewName=(TextBox)GridView1.FooterRow.FindControl("txtNewName"); " Iam using above code to capture the text of textbox but it was not working please tell any how to capture the childtextbox value of gridview

          kirankumar

          F Offline
          F Offline
          firozu
          wrote on last edited by
          #4

          kiran@p2softech wrote:

          TextBox txtNewName=(TextBox)GridView1.FooterRow.FindControl("txtNewName");

          Try Using this "TextBox txtNewName=(TextBox)GridView1.Rows.FindControl("txtNewName");" If this helps then please rate this msg. :)

          1 Reply Last reply
          0
          • K kiran p2softech

            Hi, "TextBox txtNewName=(TextBox)GridView1.FooterRow.FindControl("txtNewName"); " Iam using above code to capture the text of textbox but it was not working please tell any how to capture the childtextbox value of gridview

            kirankumar

            M Offline
            M Offline
            M LN Rao
            wrote on last edited by
            #5

            In which event you are trying to capture?

            Intelligence is measured by common sense not by how many scholarly books you read.

            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