Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL-Server
Dear Friends,
I have a Gridview in my project.
In the 2nd cell of Gridview am using hyperlink. So left side of hyperlink i need a small image of that product.
This column cell[2] consists of all Hyperlinks.
I need Small image leftside beside of hyperlink in that cell[2] only.
Please can u advice me how to do this /
Posted 10-Jun-12 2:11am
What have you tried? Have you done any task till date without getting help from the codeproject ? People dont gather on codeproject to code for others but to help solve their "difficulties". Before posting the question you need to show them what you have tried...Is that clear ?
Ranjith Reddy CSE at 10-Jun-12 8:19am
Boss , am fresher
preet88 at 10-Jun-12 12:15pm
hi Ranjith Reddy i have seen your same kind of problems with different styles of questions, it'll be better for all of us to answer if you'll post your question in same thread.
however for this i have mentioned in other post you can use rowCommand event as well as rowBataBound event..

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

you can use TemplateField in that particular cell to define every collection of controls in that cell. Here is a sample:
<asp:templatefield runat="server" xmlns:asp="#unknown">
                        <asp:image runat="server" imageurl="image1.gif" />
                        <a href="Default.aspx">Click here</a>

I hope it helps,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Dnyaneshwar@Pune 719
1 CHill60 315
2 Sergey Alexandrovich Kryukov 240
3 TheRealSteveJudge 190
4 Peter Leow 160
0 Sergey Alexandrovich Kryukov 9,193
1 OriginalGriff 6,786
2 Peter Leow 4,332
3 Zoltán Zörgő 3,809
4 Richard MacCutchan 2,672

Advertise | Privacy | Mobile
Web03 | 2.8.150128.1 | Last Updated 11 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100