﻿<?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 - Webgrid hyperlink column shows "hyperlink text" even when null</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-hyperlink-column-shows-hyperlink-text-even-when-null/</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>Webgrid hyperlink column shows "hyperlink text" even when null</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-hyperlink-column-shows-hyperlink-text-even-when-null/</link><pubDate>Thu, 06 Jan 2011 03:08:09 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>WebGrid HyperLink Column Type</category><description>Thank you Martin!&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Webgrid hyperlink column shows "hyperlink text" even when null</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-hyperlink-column-shows-hyperlink-text-even-when-null/</link><pubDate>Tue, 04 Jan 2011 22:31:21 GMT</pubDate><dc:creator>MarTin</dc:creator><category>WebGrid HyperLink Column Type</category><description>&lt;p&gt;Hello George,&lt;/p&gt;
&lt;p&gt;I finally found a way to implement your scenario.&lt;/p&gt;
&lt;p&gt;First, you need to set the &lt;strong&gt;ColumnType&lt;/strong&gt; to &lt;strong&gt;Custom&lt;/strong&gt; like following:&lt;/p&gt;&lt;pre&gt;&amp;lt;Columns&amp;gt;
    &amp;lt;ISWebGrid:WebGridColumn Name="Region" Width="100px" ColumnType="Custom" 
    Caption="Region" DataMember="Region"&amp;gt;
    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
&amp;lt;/Columns&amp;gt;&lt;/pre&gt;
&lt;p&gt;Then, use &lt;strong&gt;NullText&lt;/strong&gt; property in &lt;strong&gt;InitializeRow&lt;/strong&gt; Server-side event like following:&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
   WebGrid1.RootTable.Columns.GetNamedItem("Region").NullText = "&amp;lt;a href='http://www.intersoftpt.com' target='_blank'&amp;gt;Intersoft&amp;lt;/a&amp;gt;";
}&lt;/pre&gt;
&lt;p&gt;NullText property will automatically detect your database that has a null value.&lt;/p&gt;
&lt;p&gt;Attached is the sample file for your reference.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Webgrid hyperlink column shows "hyperlink text" even when null</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-hyperlink-column-shows-hyperlink-text-even-when-null/</link><pubDate>Tue, 04 Jan 2011 05:58:31 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>WebGrid HyperLink Column Type</category><description>&lt;p&gt;No this does not help.  I do not want to change the hyperlinkdisplaytext for all rows, only for the rows that are DBNull.&lt;br /&gt;&lt;br /&gt;However there is not a hyperlinkdisplaytext off the e.row.cells.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Webgrid hyperlink column shows "hyperlink text" even when null</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-hyperlink-column-shows-hyperlink-text-even-when-null/</link><pubDate>Tue, 04 Jan 2011 01:19:27 GMT</pubDate><dc:creator>MarTin</dc:creator><category>WebGrid HyperLink Column Type</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can change the hyperlink text using InitializeRow like following:&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
   WebGrid1.RootTable.Columns.GetNamedItem("HyperlinkColumn").HyperlinkDisplayText = "Hyperlink Text";
}&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Webgrid hyperlink column shows "hyperlink text" even when null</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-hyperlink-column-shows-hyperlink-text-even-when-null/</link><pubDate>Mon, 03 Jan 2011 05:33:51 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>WebGrid HyperLink Column Type</category><description>&lt;p&gt;I have a webgrid with a hyperlink column type, that continues to show the default hyperlink even when the column is null.  I have tried to change the text on InitializeRow, but I cannot.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>