Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to add Three Tables in one DataGridView with tables name as Header?
Example
First Table Name
Data of First Table
Second Table Name
Data of Second Table
Third Table Name
Data of Third Table

how i can do this?
Posted
Comments
Ankur\m/ 13-Aug-13 5:08am    
Search Google for 'nested DataGridView'.
Basmeh Awad 13-Aug-13 5:41am    
what have you done so far??
where you got stuck??
show your code..
kumar.binit 13-Aug-13 5:55am    
Sorry!!!!
I have no code.
It's only Requirement of my Client
pradiprenushe 13-Aug-13 6:22am    
You should try first & then ask for help what problem you face & what you tried.
Maciej Los 13-Aug-13 16:54pm    
WinForms, WebControls, WPF?

Sorry, but you do not specify a framework (se my comment to the question)...

Generally, it's not possible! DataGridView (Windows.Forms.DataGridView) accept only one DataTable[^] object as a DataSource[^]. You can't set DataSource property as a [collection of datatables].
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900