Hi I have the following data in datagridview in c# winforms:
Register 1 | 10,00 | 15,00 | Group 1
Register 2 | 10,00 | 15,00 | Group 1
Register 3 | 10,00 | 15,00 | Group 2
Register 4 | 10,00 | 15,00 | Group 2
I want to get this in the following form:
Group 1
Register 1 | 10,00 | 15,00
Register 2 | 10,00 | 15,00
Group 1
Register 3 | 10,00 | 15,00
Register 4 | 10,00 | 15,00
I dont want to use multiple datagridviews
The built-in WinForms DGV does not support grouping. Here is an article where someone has added this functionality themselves (note that I have not used this myself and so am not making a recommendation): http://blogs.vbcity.com/hotdog/archive/2008/12/19/9226.aspx
Alternately there are countless third-party DGV controls for sale. Infragistics has an excellent one that I can recommend which does provide grouping: http://www.infragistics.com/dotnet/netadvantage/winforms/wingrid.aspx#Overview
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With