Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Image in a grid view.


Image in a grid view.

Reply
  #1 (permalink)  
Old 02-11-08, 08:17 AM
Rapid Dr3am Rapid Dr3am is offline
Community VIP
 
Join Date: Jan 2004
Location: Liverpool, England
Posts: 752
Thanks: 0
Thanked 0 Times in 0 Posts
Image in a grid view.

Right, I know I'm getting annoying. I've build a gridview but what I want to do now is strip out the Comments section and replace with an image with alt text to show on hover with the comments.

Any ideas anyone?
__________________
Placeholder, place signature here.
Reply With Quote
  #2 (permalink)  
Old 02-12-08, 03:06 AM
Rapid Dr3am Rapid Dr3am is offline
Community VIP
 
Join Date: Jan 2004
Location: Liverpool, England
Posts: 752
Thanks: 0
Thanked 0 Times in 0 Posts
Got it, was quite easy. Why do I keep thinking to hard about the simple things?
__________________
Placeholder, place signature here.
Reply With Quote
  #3 (permalink)  
Old 02-12-08, 10:02 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
Please post your solution to this issue for the benefit of other forum visitors.

Thanks,
Pete
__________________
Reply With Quote
  #4 (permalink)  
Old 02-13-08, 10:34 AM
Rapid Dr3am Rapid Dr3am is offline
Community VIP
 
Join Date: Jan 2004
Location: Liverpool, England
Posts: 752
Thanks: 0
Thanked 0 Times in 0 Posts
Bit messy but when it created the labels I just altered the type and did it like this:

Code:
                                            <asp:TemplateField HeaderText="Comments&amp;nbsp &amp;nbsp ">
                                                <ItemStyle HorizontalAlign="right" Width="250px"/>
                                                <ItemTemplate>
                                                <asp:Image ID="Label5" runat="server" ToolTip='<%# Bind("Comments") %>' ImageUrl="graphics/comments.gif"></asp:Image>
                                                </ItemTemplate>
                                            </asp:TemplateField>
__________________
Placeholder, place signature here.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grid View Toggle Detail Rapid Dr3am ASP.NET 1 02-06-08 05:03 AM
Simple Image check - view page vivabensmith PHP 1 09-07-07 02:03 AM
Thumb nail view of image pr0grammer PHP 4 05-18-07 08:22 AM
floating image that stays in view drsst Script Requests 1 05-09-07 05:38 PM
how to draw an image inside a table? davidklonski HTML/XHTML/XML 2 07-06-04 10:27 AM


All times are GMT -5. The time now is 02:35 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.