﻿<?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 - How to resize column width as and when i type in data in the edited cell ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-resize-column-width-as-and-when-i-type-in-data-in-the-edited-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>How to resize column width as and when i type in data in the edited cell ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-resize-column-width-as-and-when-i-type-in-data-in-the-edited-cell-/</link><pubDate>Fri, 09 Apr 2010 08:30:13 GMT</pubDate><dc:creator>julia</dc:creator><description>&lt;p&gt;Hi Gaurav,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Unfortunately, we don't have property that could resize the width automatically at typing time.&lt;/p&gt;
&lt;p&gt;In case you need code to change the width manually, you can use this snippet :&lt;/p&gt;&lt;pre&gt;function Button1_OnClick()
{
    var grid = ISGetObject("WebGrid1");
    var phoneColumn = grid.RootTable.Columns.GetNamedItem("Phone");
    
    phoneColumn.Resize(100); // resize to 100 px
    alert("Phone column's width is now: " &amp;#43; phoneColumn.Width);
}

&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>How to resize column width as and when i type in data in the edited cell ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-resize-column-width-as-and-when-i-type-in-data-in-the-edited-cell-/</link><pubDate>Thu, 08 Apr 2010 02:02:37 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;We are using WebGrid 7.0 in SharePoint web part where we are rendering web grid programaticallyl.&lt;/p&gt;
&lt;p&gt;We have inline editing enabled in web gird and what we want to achieve following functionality.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;By default lets say column width is 40 pixel. Now when user types in data like "123456789" which does not fit in the 40 pixel column width. Is there a way i can resize the column width automatically as i type in when the data width goes beyond the limit of column width ???&lt;/p&gt;
&lt;p&gt;appereciate any help.&lt;/p&gt;
&lt;p&gt;thank you.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>