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. Get a reference of HTML Table bound to a GridView

Get a reference of HTML Table bound to a GridView

Scheduled Pinned Locked Moved ASP.NET
htmlhelp
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.
  • S Offline
    S Offline
    Sheel Gohe
    wrote on last edited by
    #1

    How can we get a reference of HTML Table bound to a GridView aconvert gridview as datasource. Like, if i want to add a new row to gridview at runtime, i can access its html table and add a new td to that. Plz help me guys... Thanks in advance Sheel Gohe

    C K 2 Replies Last reply
    0
    • S Sheel Gohe

      How can we get a reference of HTML Table bound to a GridView aconvert gridview as datasource. Like, if i want to add a new row to gridview at runtime, i can access its html table and add a new td to that. Plz help me guys... Thanks in advance Sheel Gohe

      C Offline
      C Offline
      CWIZO
      wrote on last edited by
      #2

      Append the ID attribute to the table. -------------------------------------------------------- My portfolio & development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      1 Reply Last reply
      0
      • S Sheel Gohe

        How can we get a reference of HTML Table bound to a GridView aconvert gridview as datasource. Like, if i want to add a new row to gridview at runtime, i can access its html table and add a new td to that. Plz help me guys... Thanks in advance Sheel Gohe

        K Offline
        K Offline
        Kanjinghat
        wrote on last edited by
        #3

        set to properties for the HTML table. set ID and runat="server". or if you are adding the the table at design time, just right click on the table and select "Run as server control" and set ID property in the properties window. or go to HTML view and add the following line to the HTML table tag. id="GiveSomeidhere" runat="server". let us say id="TableID" runat="server" now HtmlTable htmlTable = new HtmlTable(); htmlTable = this.FindControl("TableID"); now you can do your codin using this htmlTable variable. hope this will help you. cheers Ramesh.Kanjinghat

        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