can i using gridview to create friends list like this?

http://www.4shared.com/photo/xxPeJoHG/tanya.html

>can i using gridview to create friends list like this?

Yes.

thx 4 your replay.. can u tell me the way to create friendlist like that using gridview?

Hi,

Yes you can.

Follow these steps:-

1) In GridView, select smart tag.
2) Click Edit columns
3) select ImageField and click Add
4) click "Convert this field into template field" and click OK.
5) After step 4, you'll see image control in the GridView
6) Click smart tag and select "Edit template"
7) You will see an image control in ItemTemplate field.
8) Click the smart tag of the image control and select "Edit DataBindings"
9) ImageUrl will be selected by default.
10) In Code expression, type:- Eval("MyPic")
NOTE:- "MyPic" is a column in database defining Url of image). Click OK.

So far, try these steps. If you're done with it then tell me so that I can teach you the next procedure.

:) goodday

pinky girl.. thanks for your replay.. :)
i've done step by step. but i have a problem with step 10..In my database i just save url like this : "Avatar/kieky.jpg"
if i want to display that pic, i must add : "~/App_Themes/DMS/" before Avatar/kieky.jpg
so, i write my code like this :

ImageUrl= "~/App_Themes/DMS/" +'<%# Eval("Avatar") %>'

and i got error.. can u correct that code?

Hey kieky, sorry I couldn't help much at this point:-

ImageUrl= "~/App_Themes/DMS/" +'<%# Eval("Avatar") %>'

you can bind the data in datagrid or listview

deepali..
no problem.. i have done a few minutes ago with another way...
btw thanks for teaching me.. :)

oh :) okay no problem

@deepali
can you plzzz tell me a simple way 2 solve dis prob????

@pinky girl

i hav gone thru these 10 steps successfully, so kindly tell me the next procedure for showing friend list wid photograph and name..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.