Click here to Skip to main content
16,020,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a table with columns like
cnmae(id),productname,qty,price
in this every id has more than one product, my requirement is when i click on the button i t will display the cname(id) and products related to that id in one columns like this

Cname(id)

2001
colgate
xxxx
yyyy
2002
zzzz
dfdsk
hhhhh


i used grid view for displaying data ,how can i do this,can any one help me,pls
Posted
Comments
Vani Kulkarni 24-Aug-12 1:24am    
What have you tried? Can you post your code?
Sandeep Mewara 24-Aug-12 3:16am    
Where are you stuck?
ridoy 24-Aug-12 3:37am    
if you use gridview in asp.net it is quite easier.often it don't need to code for showing data.just you need to write sql query for which data you need to display.if you wish such way..i will explain it later..infact if you need

1 solution

I got your requirement.
Please go through Expandable Rows In GridView[^] and try to implement in your project.

Thanks...
 
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