DataGridView Header
-
Hi all. I'm a noob and i have a question to you all. I want to present a datagridview with more then one Header Row and with the first column row merged like this: ----------------------------------------- |...............Week......................| -> Week ----------------------------------------- |..M..|..T..|..W..|..T..|..F..|..S..|..S..| -> Each Week Day ------------------------------------------ Is there a way to do that? I didn't want to use a comercial component ;P Thanks in advance.
-
Hi all. I'm a noob and i have a question to you all. I want to present a datagridview with more then one Header Row and with the first column row merged like this: ----------------------------------------- |...............Week......................| -> Week ----------------------------------------- |..M..|..T..|..W..|..T..|..F..|..S..|..S..| -> Each Week Day ------------------------------------------ Is there a way to do that? I didn't want to use a comercial component ;P Thanks in advance.
Hi, Unfortunately DataGridView does not support cell merging. You can custom paint content across cells, but it will require a lot of work and custom coding to produce merged editable cells. You may take a look at the following forum postings: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=260387&SiteID=1[^] http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=783151&SiteID=1[^] Hope this helps :).
Regards, John Adams ComponentOne LLC