Windows Develop Bookmark and Share   
 index > Windows Forms Designer > display datagriview in panel control
 

display datagriview in panel control

Hi all

I want to know

1)how to display a datagriview contol inside a splitcontainer_panel control ,so when application runs the datagridview displays in a panel and it should fit to panel and
2)when i resize the panel the datagridview shuold also expand and fit to control
How to achieve this


Thanks in advance

DAM
  • Changed Typedamu maddy Tuesday, February 10, 2009 9:27 PM
  •  
damu maddy  Saturday, January 31, 2009 5:25 PM
In the designer, select the DataGridView and make sure it is inside the panel you want.
Then, at the top-right of the DataGridView, there should be a small button with an arrow in it, click it and then select 'Dock in parent container'

Hope that helps.
NehalM  Sunday, February 01, 2009 5:56 PM

In my scenario in am using table layout and 1 columnswith 3 rows

In the first rows i am placing group boxes and in the last row i am docking my datagridview

But when i run the groupboxes are placed in right position but my datagridview sticks to top of the form

Regards

dam

damu maddy  Sunday, February 01, 2009 7:50 PM
Hi damu maddy,

I got a little confuse.

->But when i run the groupboxes are placed in right position but my datagridview sticks to top of the form

Where have you docked you DataGridView? Could you provide the related design code in InitializeComponent mehod?

Besides, it would be best if you open up a thread for another question. This will make answer searching in the forum easier and be beneficial to other community members as well. Thanks for your understanding.

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Friday, February 06, 2009 4:14 AM

You can use google to search for other answers

Custom Search

More Threads

• MonthCalendar: HighLight Only Selected Range.
• Changing property localizability via TypeDescriptor
• Windows Mobile
• Event Publisher not Publishing?
• finding the position of labels in the propertygrid
• nudge like MSN Messenger
• too slow
• works on VS2005 Machines and does not work on NON VS2005 machines
• VS 2005 (Team Ed. for SD) C# disappearing of eventhandler delegates
• AutoScaleMode Property does not exist