﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Display hyperlink image in webgrid cell.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Display-hyperlink-image-in-webgrid-cell/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Display hyperlink image in webgrid cell.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Display-hyperlink-image-in-webgrid-cell/</link><pubDate>Mon, 24 Jun 2013 23:42:05 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Could you please provide me with more detail information about which editor specified on the WebGridColumn object and the step-by-step to reproduce the reported problem? A working simple sample will helps much.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Look forward to hearing back from you.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Display hyperlink image in webgrid cell.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Display-hyperlink-image-in-webgrid-cell/</link><pubDate>Mon, 24 Jun 2013 04:34:24 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>WebGrid</category><description>Thanx Yudi, my image is 200 x 82 but it might work.&amp;nbsp; Quick question.&amp;nbsp; How do I prevent a column from showing HTML codes?&amp;nbsp; For example when I use the editor, I get html codes in the grid.&lt;br /&gt;</description></item><item><title>Display hyperlink image in webgrid cell.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Display-hyperlink-image-in-webgrid-cell/</link><pubDate>Mon, 24 Jun 2013 00:30:20 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;WebGrid has ButtonImage column type which may suit with your scenario, to put the image in an ImageButton. The following screenshot shows a WebGrid using ButtonImage column type in the first column.&lt;/span&gt;&lt;/p&gt;&lt;img src="http://www.intersoftpt.com/Community/Attachments/3676/WebGrid_ButtonImage_ColumnType.jpg"&gt;&lt;/img&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The ButtonImage column type takes advantage of existing architecture such as ButtonAutoPostback property and ButtonPostbackMode property. The ButtonClick client side event is invoked as well for ButtonImage column type.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The sample ButtonImage definition in WebGridColumn is as following:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Width="30px" ColumnType="ButtonImage" 
    ButtonImage="images/info.gif" ButtonAutoPostback="true"&amp;gt;
&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Display hyperlink image in webgrid cell.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Display-hyperlink-image-in-webgrid-cell/</link><pubDate>Sat, 22 Jun 2013 17:21:54 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>WebGrid</category><description>Yudi,&amp;nbsp; the above solution worked fine.&amp;nbsp; Now I want to put the image in an ImageButton.&amp;nbsp; How do I accomplish this?&lt;br /&gt;</description></item><item><title>Display hyperlink image in webgrid cell.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Display-hyperlink-image-in-webgrid-cell/</link><pubDate>Mon, 17 Jun 2013 04:46:13 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><description>&lt;pre&gt;Protected Sub WebGrid1_InitializeRow(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.RowEventArgs)
    If e.Row.Type = ISNet.WebUI.WebGrid.RowType.Record Then
        Dim customerID As WebGridCell = e.Row.Cells.GetNamedItem("CustomerID")
        customerID.Image = "http://gkfahnbulleh-001-site16.smarterasp.net/content/media/00coverimages/dahlgren4.jpg"
        customerID.CustomObjectAttributes = "height=82 width=200"
    End If
End Sub&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The above snippet code should do the trick. Please let us know if you have different result.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Display hyperlink image in webgrid cell.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Display-hyperlink-image-in-webgrid-cell/</link><pubDate>Mon, 17 Jun 2013 02:07:31 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>WebGrid</category><description>&lt;br /&gt;Yudi,&lt;br /&gt;&lt;br /&gt;Thanks for your response. &lt;br /&gt;&lt;br /&gt;The images I am trying to display are like the one below. The actual size of the image is 980 x 400. I need it to be 200 x82. I can get the image to display, I cannot get the size correct.&lt;br /&gt;&lt;br /&gt;http://gkfahnbulleh-001-site16.smarterasp.net/content/media/00coverimages/dahlgren4.jpg&lt;br /&gt;</description></item><item><title>Display hyperlink image in webgrid cell.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Display-hyperlink-image-in-webgrid-cell/</link><pubDate>Mon, 17 Jun 2013 00:39:49 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The &lt;strong&gt;CellImage&lt;/strong&gt; property gets or sets the image file name that will be displayed in cells that belong to a column. Simply set this property with the image file name such as shown in the following snippet code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Example: Set CellImage property in aspx page.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="CustomerID" DataMember="CustomerID" Name="CustomerID"
    Width="120px" ColumnType="ImageAndText" CellImage="images/user.gif"&amp;gt;
&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Example: Set CellImage property in code behind (vb).&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;Protected Sub WebGrid1_InitializeRow(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.RowEventArgs)
    WebGrid1.RootTable.Columns.GetNamedItem("CustomerID").CellImage = "images/user2.gif"
    ' Alternatively can use following snippet to set the cell image
    'If e.Row.Type = ISNet.WebUI.WebGrid.RowType.Record Then
    '    e.Row.Cells.GetNamedItem("CustomerID").Image = "images/user2.gif"
    'End If
End Sub&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;For more detail, please check the code behind in &lt;a href="http://live.intersoftpt.com/cs/WebGrid/FirstExperience.aspx?noframe=1" target="_blank"&gt;FirstExperience.aspx&lt;/a&gt; sample and &lt;a href="http://live.intersoftpt.com/cs/WebGrid/NewButtonImageColumnType.aspx?noframe=1" target="_blank"&gt;NewButtonImageColumnType.aspx&lt;/a&gt; sample.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;This should help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Display hyperlink image in webgrid cell.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Display-hyperlink-image-in-webgrid-cell/</link><pubDate>Sun, 16 Jun 2013 13:40:59 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;My cell is set to "image"  The following code constructs and formats the image properly; however it does not show in the cell.&lt;/p&gt;&lt;pre&gt;Dim Otext As String = "&amp;lt;img src="
    Dim wText As String = " width=" &amp;#43; """" &amp;#43; "200px" &amp;#43; """"
    Dim hText As String = " height=" &amp;#43; """" &amp;#43; "82px" &amp;#43; """"
    Dim CText As String = " /&amp;gt;"
    Protected Sub WebGrid1_InitializeRow(sender As Object, e As ISNet.WebUI.WebGrid.RowEventArgs) Handles WebGrid1.InitializeRow
        WebGrid1.RootTable.Columns.GetNamedItem("ImageShow").CellImage = Otext &amp;#43; " """ &amp;#43; e.Row.Cells(3).Text &amp;#43; """ " &amp;#43; wText &amp;#43; hText '&amp;#43; CText
        WebGrid1.RootTable.Columns(2).MaxHeight = Unit.Pixel(82)
        'Response.Write(Otext &amp;#43; " """ &amp;#43; e.Row.Cells(3).Text &amp;#43; """ " &amp;#43; wText &amp;#43; hText &amp;#43; CText)
    End Sub&lt;/pre&gt;
&lt;p&gt;What am I doing wrong?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>