I use vb.net 2019 with MySQL database
I have a table named "Weeks", with 52 columns: WK1,WK2,WK3,WK4,WK5,and so on.....
I want to create datagridview with two headers months and weeks:
Who can help me with this issue?

Week_Datagridview.PNG

There is no direct way to do that but I'd like to point out a potential problem. What do you do when a week straddles two months?

If you still want to have months with weeks under you might use a tab control with one month per tab. That has the benefit of not requiring horizontal scrolling.

commented: thanks for the quick answer. I go for you solotion +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.