Click here to Skip to main content
15,881,516 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Datagridview inside one Datagridview in asp.net windows form Please Give me Any sample
Posted
Comments
Rohit Kumar Mumbai 22-Mar-13 9:32am    
You want sample of asp.net or winform?
Orcun Iyigun 22-Mar-13 10:01am    
OP's comment: Windows forms only sir...i am using two data table header table and child table...Now i am showing the header table values in Data grid View for example 10 rows .if click the any rows i want to show the Child table values in the Same Data Grid view .Please help me ..
DhananjayanP 22-Mar-13 9:45am    
Windows forms only sir...i am using two data table header table and child table...Now i am showing the header table values in Data grid View for example 10 rows .if click the any rows i want to show the Child table values in the Same Data Grid view .Please help me ..
Orcun Iyigun 22-Mar-13 10:02am    
Use reply button if you want him to be notified.

1 solution

You are pretty much looking for nested datagridviews. Here are some links for you to take a look:

*Nested DataGridView in Windows Forms using c# ( DataGridView within DataGridView)[^]
*HierarGrid - A hierarchical DataGrid that displays master-detail relations[^]
*DataGridView with hierarchical data binding[^]

-- OR --

You can write a custom DataGridVewColumn with DataGridView in a specific cell where you want it to be shown. There is a sample here in CP which uses a Color Picker ComboBox in DataGridView cells.
How to Host a Color Picker Combobox in Windows Forms DataGridView Cells[^]

Good luck,
OI
 
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