Windows forms multiple Tabs with datagridviews

pritipatel0408
pritipatel0408 used Ask the Experts™
on
Is there a good tutorial that will help with implementing tab control with tabs showing multiple datagridviews on a windows forms application?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Jessica WhitleySoftware Developer
Top Expert 2015

Commented:
I found two separate tutorial links for you. The first is a code project site link that does a walk through with a nice visual aid.

http://www.codeproject.com/Articles/252889/Multiple-DataGridViews-on-a-Form

The second is a Microsoft msdn tutorial link.

https://msdn.microsoft.com/en-us/library/vstudio/33w255ac(v=VS.100).aspx

Author

Commented:
the links dont mention tabs
Software Developer
Top Expert 2015
Commented:
This may not be a tutorial but I will keep looking. I do believe this answersite how you can do what you are hoping to accomplish.

http://www.codeotel.com/0zHeVXjkXW/tab-control-datagridview-in-winforms.html
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Jessica WhitleySoftware Developer
Top Expert 2015

Commented:
http://cplus.about.com/od/learnc/ss/adv_winforms.htm#step10
Steps 1-10 obviously are not all about tab controls but it should be a good visual aid.

Author

Commented:
You rightly identified my problem statement
I have multiple results sets coming back from a server request against a datasource. I want to organise these with a WinForms tabPage for each result set, on a single tabControl. I am displaying the data in a DataGridView, but want to avoid having a DataGridView instance on each tabPage - I'd rather intercept the "switching to new tab page" message, and load up the appropriate results set from my local cache. Is there an easy/obvious way to do this?

I need a sample code

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial