troubleshooting Question

Add row headers to a DataGridView

Avatar of andre72
andre72 asked on
.NET ProgrammingVisual Basic.NET
5 Comments1 Solution351 ViewsLast Modified:
Hi,

I've a simple DataTable like this:
ID | Name | isActiv

I create a DataView with and sort it by isActiv, Name .
Now I attach it as a DataSource to a DataGridView:
ID | Name | isActiv
1 | Andre1 | true
2 | Andre2 | true
3 | Andre3 | true
4 | Andre4 | true
5 | Andre1 | false
6 | Andre2 | false

This works fine but I like to give the active and also the none activ a row header like this:
Active ones
1 | Andre1 | true
2 | Andre2 | true
3 | Andre3 | true
4 | Andre4 | true
Inactive ones
5 | Andre1 | false
6 | Andre2 | false

The goal would be to let the groups expand / collapse on click but this is not necassary.
I know the great controls like eg. OutlookGrid and TreeDataGrid but I think there's no need to change my code to include such powerful controls for only insert two rows ...

Thanks

Andre
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros