Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
HI,
I am doing a project in .net using c# language in 3.5.
I have a requirement in which i want to display the products details stored in
the sql Server along with the images whose imagepath is stored in the database.
The main question is?
1. If my product is mobile? Then it should display all the details and all the mobiles model along with images.User must be able to see all the products under mobile
category.
If i use gridview then could i be able to see the images whose path is given in the table details?
Please help me with it?

table used in my project:
1. category(c_id int primary key, c_name varchar(50));
2. subcategory(sc_id int primary key, c_id int references category(c_id), sc_name varchr(50));
3. details(d_id int primary key,sc_id int references subcategory(sc_id), d_name varchar(50), d_price varchar(10), d_discount varchar(10), d_imagepath varchar(100));

If i use List view control then how should i use it?

Will be waiting for your reply?
Posted
Updated 27-May-11 1:52am
v3

Must you use listview or is gridview ok? If given the choice, for multiple columns of different types, I would use gridview. See here:

http://www.codeproject.com/Messages/3895927/ListView.aspx[^]
 
Share this answer
 
Comments
Nischal Bhatt 26-May-11 13:41pm    
Hi! Wizardzz, indeed you're true, it's better to use Gridview instead of using ListView.
Ravi_25 27-May-11 7:55am    
Could i be able to see the images whose path is there in the table details? And will i be able to show it in thumbnail type of view .
Means Will i be able to show the result with image and its info in Gridview?
I would suggest you to go for Gridview Control instead,
Here is the link to your Listview control with detail explanation.
http://msdn.microsoft.com/en-us/library/bb398790.aspx[^]
 
Share this answer
 
you must define an "ImageList" to use it with the List view:
then link each item in the list view with it's picture...

you may use MSDN help thats already installed with VS package :D
take care my freind
 
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