﻿<?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 - Webgridlayoutsettings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgridlayoutsettings/</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>Webgridlayoutsettings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgridlayoutsettings/</link><pubDate>Thu, 13 May 2010 09:50:34 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi RunFast,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; We do have a property that will allow one particular column to have an auto width, using IsAutoWidth = true. However, when we use that property, we will need to set the AutoFitColumns to true as well. Here is the snippet:&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;&amp;lt;LayoutSettings AutoFitColumns="true"&amp;gt;        &lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; And this is needed in that one particular column:&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="Address" DataMember="Address" Name="Address" Width="100px" IsAutoWidth="true"&amp;gt;
&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Furthermore, if you are willing to have all the column to have a best fit columns, you will need to set them in window on load function and set the column to best fit one by one. Here is the snippet:&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;       function window::onload(){             
              var WebGrid = ISGetObject("WebGrid1");                                
              for(var i = 0 ; i&amp;lt; WebGrid.GetRootTable().Columns.length;i&amp;#43;&amp;#43;){                 
                    WebGrid.GetRootTable().Columns[i].ResizeBestFit();             
              }            
        }&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; I hope it helps. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Webgridlayoutsettings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgridlayoutsettings/</link><pubDate>Wed, 12 May 2010 12:33:29 GMT</pubDate><dc:creator>123runfast</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;I have one problem with with Web grid lay out settings. My web grid width is not fit to all columns . There is some empty spaced column which i do not need. How to get rid of that empty column space in the web grid and make all column exactly to width of the grid.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Runfast...&lt;/p&gt;</description></item></channel></rss>