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 to get the grid textbox value

How to get the grid textbox value

Scheduled Pinned Locked Moved ASP.NET
csharpcss
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.
  • A Offline
    A Offline
    Amit Agarrwal
    wrote on last edited by
    #1

    Hello frnds, i'm using a Datagrid in my page, i have a Text box in item template..we have two colums in datagrid one for label name which is a bind column. and another for text box. when i bind the grid then lable names are coming correctly.. now i want to get the text box value.... according to the label. any suggestion plz.. thanx

    Dotnet

    I K 2 Replies Last reply
    0
    • A Amit Agarrwal

      Hello frnds, i'm using a Datagrid in my page, i have a Text box in item template..we have two colums in datagrid one for label name which is a bind column. and another for text box. when i bind the grid then lable names are coming correctly.. now i want to get the text box value.... according to the label. any suggestion plz.. thanx

      Dotnet

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      dim TB as textbox For i = 0 To iGetDs.Tables(0).Rows.Count - 1 TB = CType(Me.GVCartView.Rows(i).Cells(1).FindControl("TB1"), TextBox) TB.Text =//get value here for textbox next pathan

      1 Reply Last reply
      0
      • A Amit Agarrwal

        Hello frnds, i'm using a Datagrid in my page, i have a Text box in item template..we have two colums in datagrid one for label name which is a bind column. and another for text box. when i bind the grid then lable names are coming correctly.. now i want to get the text box value.... according to the label. any suggestion plz.. thanx

        Dotnet

        K Offline
        K Offline
        Kamal Afridi
        wrote on last edited by
        #3

        (TextBox)Gridview1.Rows[index].Cells[0].FindControl("txtTravelDate")).Text index = Gridview row index Cells[0] = Column Number

        Know Yourself Then Grow Yourself.

        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