﻿<?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 - Hyperlink column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Hyperlink-column/</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>Hyperlink column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Hyperlink-column/</link><pubDate>Tue, 13 Nov 2012 07:28:21 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;Thanks Hans, I wasn't aware of the Custom columntype.  &lt;/p&gt;</description></item><item><title>Hyperlink column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Hyperlink-column/</link><pubDate>Mon, 12 Nov 2012 03:13:53 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I made a simple WebGrid sample that perhaps similar with your scenario requirement.&lt;br&gt;&lt;/br&gt;I bind WebGrid to access data source (Northwind.mdb database and Shippers table).&lt;/p&gt;
&lt;p&gt;In my sample, if the value of ShipperID is “1”, the ShipperID will appear as a hyperlink to another page.&lt;/p&gt;
&lt;p&gt;In ShipperID column, I set ColumnType property to "Custom".&lt;br&gt;&lt;/br&gt;And in InitializeRow server side event I add some validation code:&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
    string shipperID = e.Row.Cells.GetNamedItem("ShipperID").Text;
    if (shipperID == "1")
        e.Row.Cells.GetNamedItem("ShipperID").Text = "&amp;lt;a href='http://google.com'&amp;gt;" &amp;#43; shipperID &amp;#43; " &amp;lt;/a&amp;gt;";
    else
        e.Row.Cells.GetNamedItem("ShipperID").Text = shipperID;
        
}&lt;/pre&gt;
&lt;p&gt;Please kindly have on my sample and let me know your reponse.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br&gt;&lt;/br&gt;Hans.&lt;/p&gt;</description></item><item><title>Hyperlink column</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Hyperlink-column/</link><pubDate>Fri, 09 Nov 2012 11:11:03 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;I have a Hyperlink column which shows data of Yes or No.  If Yes I want it to user the HyperLinkFormatString so that when clicked it opens a new page, but if No I don't want it to use the HyplerLinkFormatString and would like to convert it to just text.&lt;/p&gt;
&lt;p&gt;I know that a TemplateColumn would work but due to other problems (SaveLayout can't deal with Template Columns) with Grid8, I can't use a Template Column.&lt;/p&gt;
&lt;p&gt;I've tried to change the ColumnType to Text in the InitalizeRow event but it changes the entire column. Would like to convert just the cell.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>