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 Filter gridview?

How to Filter gridview?

Scheduled Pinned Locked Moved ASP.NET
databasehelptutorialquestion
4 Posts 2 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.
  • I Offline
    I Offline
    indiaone
    wrote on last edited by
    #1

    Hi. From Database i m getting data in this format. CAC PAT A 12/03/07 CAC PAT A 12/04/07 CAC PAT A 12/05/07 CMP CAT B 11/03/07 CMP CAT B 11/06/07 CMP CAT B 11/08/07 CPL AMT C 10/01/07 CPL AMT C 10/04/07 CPL AMT C 10/06/07 I want to display like that CAC PAT A 12/03/07 12/04/07 12/05/07 CMP CAT B 11/03/07 11/06/07 11/08/07 CPL AMT C 10/01/07 10/04/07 10/06/07 How to do ? Help me Thanks

    C 1 Reply Last reply
    0
    • I indiaone

      Hi. From Database i m getting data in this format. CAC PAT A 12/03/07 CAC PAT A 12/04/07 CAC PAT A 12/05/07 CMP CAT B 11/03/07 CMP CAT B 11/06/07 CMP CAT B 11/08/07 CPL AMT C 10/01/07 CPL AMT C 10/04/07 CPL AMT C 10/06/07 I want to display like that CAC PAT A 12/03/07 12/04/07 12/05/07 CMP CAT B 11/03/07 11/06/07 11/08/07 CPL AMT C 10/01/07 10/04/07 10/06/07 How to do ? Help me Thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Gridview is probably the wrong control for this. A repeater is your best bet where you want more fine grained control over what is rendered, the downside being that you lose all the stuff built into the gridview.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      I 1 Reply Last reply
      0
      • C Christian Graus

        Gridview is probably the wrong control for this. A repeater is your best bet where you want more fine grained control over what is rendered, the downside being that you lose all the stuff built into the gridview.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        I Offline
        I Offline
        indiaone
        wrote on last edited by
        #3

        hi thanks for reply. but i m doing modification also. so want that functionality using gridview only. plz explain it thanks

        C 1 Reply Last reply
        0
        • I indiaone

          hi thanks for reply. but i m doing modification also. so want that functionality using gridview only. plz explain it thanks

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Then you've got issues. You can perhaps trick the grid view by defining columns that include table elements, but it's going to be nasty, you're opting to declare war on the control, to fight what it wants to display, and make it do something different.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          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