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 with subheaders below....

Gridview with subheaders below....

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

    Hi, I have a grid view to which i am binding data from the employees table. I am also displaying first name and last name in grid view. now i want the first name and last name under one main sub header name. Below is the example.

    EmployeeId ContractNo ContactNo EmployeeName Summary
    First Last

    E001 Co123456 900878634 Xyz Abc PQR

    I the above example i want First and Last below the EmployeeName as a subheader, means EmployeeName acts as a main header for First and last. I also need to provide sorting on EmployeeName. Can any one suggest me a solution by some code example or some useful link regarding this in order to provide subheader inside one main header in the same format. solution will be highly appreciated. Regards,

    Pranav Dave

    A S 2 Replies Last reply
    0
    • P pranavcool

      Hi, I have a grid view to which i am binding data from the employees table. I am also displaying first name and last name in grid view. now i want the first name and last name under one main sub header name. Below is the example.

      EmployeeId ContractNo ContactNo EmployeeName Summary
      First Last

      E001 Co123456 900878634 Xyz Abc PQR

      I the above example i want First and Last below the EmployeeName as a subheader, means EmployeeName acts as a main header for First and last. I also need to provide sorting on EmployeeName. Can any one suggest me a solution by some code example or some useful link regarding this in order to provide subheader inside one main header in the same format. solution will be highly appreciated. Regards,

      Pranav Dave

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      Will HeaderTemplate work for you?Add a table to header template and add text as you desired. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.templatefield.headertemplate%28VS.80%29.aspx[^]

      Arun Jacob http://codepronet.blogspot.com/

      1 Reply Last reply
      0
      • P pranavcool

        Hi, I have a grid view to which i am binding data from the employees table. I am also displaying first name and last name in grid view. now i want the first name and last name under one main sub header name. Below is the example.

        EmployeeId ContractNo ContactNo EmployeeName Summary
        First Last

        E001 Co123456 900878634 Xyz Abc PQR

        I the above example i want First and Last below the EmployeeName as a subheader, means EmployeeName acts as a main header for First and last. I also need to provide sorting on EmployeeName. Can any one suggest me a solution by some code example or some useful link regarding this in order to provide subheader inside one main header in the same format. solution will be highly appreciated. Regards,

        Pranav Dave

        S Offline
        S Offline
        sashidhar
        wrote on last edited by
        #3

        Refer this link below http://1diot.blogspot.com/2007/10/creating-subheader-in-gridview.html[^]

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        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