Coder Social home page Coder Social logo

marcalfaro / datagridview---dualheader Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 19 KB

Create Dual / Multiple Header or Group Header in your DataGridView control

Visual Basic .NET 100.00%
datagridview datagridview-control flexibility dgv dual-header doublebuffer double dual multiple header

datagridview---dualheader's Introduction

DataGridView (Dual Headers) -- Creating Group Headers

Create Dual Headers or Group Headers in your DataGridView control

I have searched online for a solution to create dual or multiple headers for the DataGridView control and so far, they don't suit my requirements. I needed to add customizable "group headers" that spans above their "child" column headers, as well as having the flexibility to add more child or group columns.

Some examples online either:

  1. Adds datacolumns having same names, and then merge those columns having similar names or,
  2. Merging columns by predefined pairs.

Those examples are good BUT it doesn't give you the flexibility of adding more columns under specific "GROUP HEADERS".

Furthermore, all those examples exhibit this weird scrolling problem where the painted new header disappears if the default child column disappears from the horizontal scrolling view:

scrollproblem

So I have created my own solution that:

  1. Addresses this "disappearing" header problem upon scrolling horizontally.
  2. You can freely customize the style and add as many group headers as you want.

myheaders

Feel free to download and improve it.

Thanks!

Marc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.