﻿<?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 - Column Width as Percentage</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Width-as-Percentage/</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>Column Width as Percentage</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Width-as-Percentage/</link><pubDate>Wed, 23 Sep 2009 21:52:20 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Attached is the code we are using to test the scenario. In our testing environment, we already use the latest WebGrid and WebUI Framework. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Column Width as Percentage</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Width-as-Percentage/</link><pubDate>Wed, 23 Sep 2009 08:49:13 GMT</pubDate><dc:creator>marnel</dc:creator><description>&lt;p&gt;Thanks for your response, however in my environment which is modifying the column's percentage value during PrepareDataBinding and viewing within IE 8, the column of the modified width value just gets dropped off the grid when rendered.  &lt;/p&gt;</description></item><item><title>Column Width as Percentage</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Width-as-Percentage/</link><pubDate>Tue, 22 Sep 2009 22:27:47 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;In my environment, setting the column width during PrepareDataBinding server side event will set the height correctly. However, percentange width currently only works in IE browser. For non-IE browser you should set AutoFitColumns property to true under Layout Settings.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Column Width as Percentage</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Column-Width-as-Percentage/</link><pubDate>Tue, 22 Sep 2009 09:32:20 GMT</pubDate><dc:creator>marnel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am currently trying to set individual grid column widths to specific percentage using the following code:  &lt;/p&gt;&lt;pre&gt;grid.Columns.GetNamedItem("Title").Width = Unit.Percentage(75);&lt;/pre&gt;
&lt;p&gt;When i use this on any of the webgridcolumns it just hides the column from the layout, However if i manually go into the webgridlayout xml and add in the percentage values directly to the xml it works.  How can i do this in code?&lt;/p&gt;</description></item></channel></rss>