Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Create group rows in DataGridView

$
0
0

What I would like to do is take any column and dynamically group by that column in datagridview.

I have used a DataGridViewGrouper which allows me have collapsable grouped rows.

But the grouped row is does not have columns and its value is a string.Grouping with datagridview that supports binding

What I would lile to do is to flatten this a little more and to have a special dynamic column and grouped rows with totals.

I have looked at commercial grid implementations but none look like what I want to do.

enter image description here

Both DataGridViewGrouper https://www.codeproject.com/tips/995958/datagridviewgrouper and OutlookGrid https://www.codeproject.com/kb/grid/outlookgrid.aspx solutions offer grouping and great overall.

Is there a way to paint cells in overridden Paint or PaintCells methods of the grouped row instead of graphics.DrawString.


Viewing all articles
Browse latest Browse all 2535

Trending Articles