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. General Programming
  3. C#
  4. Excel Autofilter in datagrid

Excel Autofilter in datagrid

Scheduled Pinned Locked Moved C#
csharphelpquestion
2 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.
  • R Offline
    R Offline
    ruifernandes24
    wrote on last edited by
    #1

    Hello! Does anyone know the code to get an autofilter in a datagrid? This feature exists in Excel and it allows successives filters to data using combobox in column header. If is not possible to code this, is there anyway to call this feature directly from Excel I'm building a standalone app in c#. I appreciate your help Thanks Rui Fernandes

    D 1 Reply Last reply
    0
    • R ruifernandes24

      Hello! Does anyone know the code to get an autofilter in a datagrid? This feature exists in Excel and it allows successives filters to data using combobox in column header. If is not possible to code this, is there anyway to call this feature directly from Excel I'm building a standalone app in c#. I appreciate your help Thanks Rui Fernandes

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You're going to have to code this from scratch or try and find a 3rd partyy DataGrid component that will allow you to do this. Excel will not export it's functionality to a datagrid, it only works with an Excel worksheet. Basically, you're going to have to provide the user interface, drop down boxes to allow selections of the filters, and provide code to handle the filtering of data (using DataView objects) and binding the datagrid to the new dataviews you create. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      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