Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to insert spanned columns into datagridview column?

I have a question, but I can't find the answer, can someone help me? I need to create in a datagridview one column which spans multiple columns, this must look like following example:

enter image description here

In the grid I need to have detail about every day and every hour, what a person did in each hour. Is it possible to do this in a datagridview? Thank you very much

like image 518
Silvia Parfeni Avatar asked Feb 03 '14 08:02

Silvia Parfeni


1 Answers

Descripted functionality is not supported by standard DataGridView control. You could solve it by choosing from following opinions:

  • create your own user control

  • you can modify standard DataGridView control, for example like in this link: How can merge a particular column header in DataGridView C#?

  • use some extension library like DevExpress. Similar walkthrough like described here: http://www.devexpress.com/Support/Center/Example/Details/E2472

like image 137
Jaroslav Kadlec Avatar answered Nov 20 '22 12:11

Jaroslav Kadlec