﻿<?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 - Templated Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Templated-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>Templated Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Templated-Cell/</link><pubDate>Sun, 15 Aug 2010 22:20:29 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;You could try using multiple div with fixed width and eval keyword to achieve your scenario. Here is the snippet the I come up during my test for this scenario:&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Name="View_WebGridColumn" EditType="NoEdit"&lt;br /&gt;    ColumnType="Template" Caption="Custom View" Width="200px"&amp;gt;&lt;br /&gt;    &amp;lt;CellTemplate&amp;gt;&lt;br /&gt;        &amp;lt;div style="width:148px; float:left; line-height: 20px; height: 20px; overflow:hidden; border-right: solid 1px #add1ff; padding-left:2px;"&amp;gt;&amp;lt;%# Eval("ProductName") %&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;div style="width:48px; float:left; line-height: 20px; height:20px; padding-left:2px;"&amp;gt;&amp;lt;%# Eval("UnitPrice") %&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;/CellTemplate&amp;gt;&lt;br /&gt;    &amp;lt;CellStyle&amp;gt;&lt;br /&gt;        &amp;lt;Padding Bottom="0px" Left="0px" Right="0px" Top="0px" /&amp;gt;&lt;br /&gt;    &amp;lt;/CellStyle&amp;gt;&lt;br /&gt;&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;&lt;p&gt;Set the div width so it will fill all the column width. We must also set the div height to match the column height and finally set the cell padding to 0.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Templated Cell</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Templated-Cell/</link><pubDate>Thu, 12 Aug 2010 00:38:12 GMT</pubDate><dc:creator>SohaibQazi</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I want to add two columns in a single cell by using templated cell option. How can i do it in designer or aspx page. I am stuck in it from the past 4 days. I need to do it in hurry. Any little help will be appreciated greatly.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Sohaib Qazi&lt;/p&gt;</description></item></channel></rss>