Search code examples
.netwinformsc#-4.0.net-4.0componentone

Divide column in to sections - Gridview


I have gridview which contains merged cell and columns. I am trying to devide one cell in to separate sections but had no luck. Basically below image show what I am trying to achieve.

enter image description here

Currently I have the first picture structure and I want it to be like second picture. (In image I have only separated the columns in first 2 rows only, but I expect it to be in whole grid.)

Basically from column 2 and other will contain a date as heading. So I want the the difference of two days to be split in to separate sections.

eg

Col2(1/1/2012)         | Col3(7/1/2012)
This col will split    |
in to 6 sections (7-1) |

Any help is appreciate!!

Thanks


Solution

  • I have achieved it by merging the row data for the first row.

    I have added new columns according to the date difference and for one set of date difference, I added the same column header which will merge them together.