﻿<?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 - Row onclick event?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-onclick-event/</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>Row onclick event?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-onclick-event/</link><pubDate>Wed, 02 Jun 2010 02:34:55 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;So, you would like to have some cells are hyperlinks and some are not in a WebGridColumn?&lt;br /&gt;If yes, you would need to validate in &lt;b&gt;&lt;i&gt;IntializeRow &lt;/i&gt;&lt;/b&gt;server side event.&lt;br /&gt;Please just use a custom type for the column and try to validate like below.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
     if(e.Row.Cells.GetNamedItem("CustomerID").Value=="ALFKI)
     {
         string text = e.Row.Cells.GetNamedItem("Hyperlinktest").Text;      
         e.Row.Cells.GetNamedItem("Hyperlinktest").Value="&amp;lt;a href= 'handy.xls'&amp;gt;" &amp;#43; text &amp;#43; "&amp;lt;/a&amp;gt;";
     }
}&lt;/pre&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Row onclick event?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-onclick-event/</link><pubDate>Tue, 01 Jun 2010 22:05:51 GMT</pubDate><dc:creator>msek</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it possible to use a onclick event on any part of a row to hyperlink.&lt;/p&gt;
&lt;p&gt;I dont want to put a hyperlink on every cell in a row, because then every cell's content will be underlined to indicate a hyperlink, which doesn't look good aesthetically.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;M Sekha&lt;/p&gt;</description></item></channel></rss>