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. Problem With Grid View Header

Problem With Grid View Header

Scheduled Pinned Locked Moved ASP.NET
csshelp
4 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
    Anudeep Jaiswal
    wrote on last edited by
    #1

    Hi All, Simply i want to fetch gridview header row (heading in column) from button click note that button is outside from that grid. :cool:

    M D 2 Replies Last reply
    0
    • A Anudeep Jaiswal

      Hi All, Simply i want to fetch gridview header row (heading in column) from button click note that button is outside from that grid. :cool:

      M Offline
      M Offline
      mghiassi
      wrote on last edited by
      #2

      you can use this code <asp:GridView ID="GridView1" runat="server"> <Columns> <asp:ButtonField ButtonType="Button" Text="Button" /> </Columns> </asp:GridView>

      A 1 Reply Last reply
      0
      • A Anudeep Jaiswal

        Hi All, Simply i want to fetch gridview header row (heading in column) from button click note that button is outside from that grid. :cool:

        D Offline
        D Offline
        D4ever
        wrote on last edited by
        #3

        onbutton click dim st as String 'check which is it's property Cells or Items st=Gridview1.Rows(0).Cells(0).HeaderText or st=Gridview1.Rows(0).Items(0).HeaderText 'Here Cells(0) or Items(0) means the 0th index Column So u have to do it for all Columns i.e.Cells(0),Cells(1),Cells(2),Cells(3).....

        Darshana Pathak

        1 Reply Last reply
        0
        • M mghiassi

          you can use this code <asp:GridView ID="GridView1" runat="server"> <Columns> <asp:ButtonField ButtonType="Button" Text="Button" /> </Columns> </asp:GridView>

          A Offline
          A Offline
          Anudeep Jaiswal
          wrote on last edited by
          #4

          wrong answer

          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