Click here to Skip to main content
15,908,254 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i need to show the data according to below for asp.net c# with sql
----Family ID 1---
Member_id 1	Member_name 1
Member_id 2	Member_name 2
Member_id 3	Member_name 3

----Family ID 2---
Member_id 1	Member_name 1
Member_id 2	Member_name 2
Member_id 3	Member_name 3

----Family ID 3---
Member_id 1	Member_name 1
Member_id 2	Member_name 2
Member_id 3	Member_name 3


Kindly suggest how can i achive , which control i can use to implement..i any one having the code then pls share

What I have tried:

i dont know how can i do this...
Posted
Updated 4-Jul-19 20:32pm
v5
Comments
OriginalGriff 5-Jul-19 1:44am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
And we have no idea what environment you are working in (WinForms? Web?, Xamarin? ...), where the data comes from, how it is originally organised, ... anything really.

Use the "Improve question" widget to edit your question and provide better information.
Anuragintit 5-Jul-19 2:10am    
it is for asp.net c# with sql

 
Share this answer
 
Comments
Anuragintit 5-Jul-19 2:48am    
Exactly, what i need, million thanks
Maciej Los 5-Jul-19 3:31am    
You're very welcome.
BillWoodruff 5-Jul-19 3:12am    
+5
Maciej Los 5-Jul-19 3:31am    
Thank you, Bill.
For a WinForm project: you can use the DataTable object [^], and the DataGridview Control [^].

You create the DataTable, add Columns and Rows to it, insert data into the Cells in each Row: then you bind [^] the DataGridview to the DataTable.

We are not going to write your code for you.
 
Share this answer
 
Comments
Anuragintit 5-Jul-19 2:10am    
it is for asp.net c# with sql
BillWoodruff 5-Jul-19 3:11am    
You use very similar code in ASP

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