Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > How to create the multiple headers in DataGridView
 

How to create the multiple headers in DataGridView

Hi all,

Im new guy to winforms. I want to do one planning modules in our project for that i need two headers in DataGridView control

one is for Month and other is for days.So in first header im going to specify the month name & year and in the second header

there willa days in each columns.And also i need to create any number of columns and rows by pressing the vertical and horizontal scrollbars.

plz give me some idea.

Thanks and Regards

Sanjay.

sanjaypakale  Monday, August 03, 2009 2:42 PM
Check out following link
http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/a44622c0-74e1-463b-97b9-27b87513747e#faq6
NareshG  Monday, August 03, 2009 7:09 PM
Check out following link
http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/a44622c0-74e1-463b-97b9-27b87513747e#faq6
NareshG  Monday, August 03, 2009 7:09 PM
Thanks Naresh. I will check it.

I have one problem how to add the rows and columns when i scroll the DataGridView vertically and horizontally.when i scroll vertically new rows should be add and when i scroll the horizontally new columns should be added with new header text(day name).The DataGridView will look like an excel sheet.is this method is correct or is there any other method?.

Please clarify my doughts.

Thanks a lot

Regards
Sanjay.
sanjaypakale  Tuesday, August 04, 2009 6:54 AM
Hi sanjaypakale,

Your second question is a new question. Please post the new question in another thread. Thanks.

Best regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, August 05, 2009 11:26 AM

You can use google to search for other answers

Custom Search

More Threads

• Databinding to class properties/variables
• events keep on occuring
• TextBox DataBinding to ToolStripComboBox
• Custom Business Object and DataGrid
• DataSet and changes
• drag and drop the nodes of a tree view using ado.net in c#
• Databinding to GridView from IList
• changing the select query for a dataset
• DefaultNewRowValue property
• How do I populate a Textbox in a DataGridView from another table?