﻿<?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 - DataFormatString</title><link>http://www.intersoftsolutions.com/Community/Tags/DataFormatString/</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>Different formatting for WebGrid</title><link>http://www.intersoftsolutions.com/Community/Tags/DataFormatString/</link><pubDate>Fri, 16 Dec 2011 08:03:23 GMT</pubDate><dc:creator>Nikolay</dc:creator><category>WebGrid</category><category>DataFormatString</category><description>&lt;p /&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="undefined"&gt;Hello!&lt;o:p /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span lang="undefined"&gt;I noticed
strange behavior of WebGrid. If I use format string “0%” for decimal value (for
example value = 0.2), than I see different results for WebGrid, that used
clienside binding and serverside binding. Example is&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: calibri, sans-serif; font-size: 11pt; line-height: 115%; "&gt;attached&lt;/span&gt;&lt;span style="font-size: 10pt; "&gt;&amp;nbsp;bellow.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="undefined"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Formatting cell for Accounting Format</title><link>http://www.intersoftsolutions.com/Community/Tags/DataFormatString/</link><pubDate>Wed, 13 Jul 2011 09:14:20 GMT</pubDate><dc:creator>bbucher</dc:creator><category>DataFormatString</category><category>Accounting</category><description>&lt;p&gt;I'm formatting cells a read-only webgrid (one by one) in code-behind, and it's successful so far.  The only bits I'm missing is that I need accounting formats: &lt;/p&gt;
&lt;p&gt;negative numbers should be formatted like "(123)" instead of "-123", and &lt;/p&gt;
&lt;p&gt;zeros should be "-" rather than "0".&lt;/p&gt;
&lt;p&gt;I've tried the dataformatstring = "$#,##0.00;($#,##0.00);-" but that doesn't seem to work.  Do you have any suggestions?&lt;/p&gt;
&lt;p&gt;Many thanks!&lt;/p&gt;
&lt;p&gt;Beryl&lt;/p&gt;</description></item><item><title>DataFormatString issue</title><link>http://www.intersoftsolutions.com/Community/Tags/DataFormatString/</link><pubDate>Sat, 25 Sep 2010 23:04:14 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>DataFormatString</category><category>issue</category><description>&lt;p&gt;I use  DataFormatString="$##,###.00", when the cell into EditState ,&lt;strong&gt;I can not see the oldvalue&lt;/strong&gt;, but the other cells have not this problem,how to fix it???&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="FoodPrice" DataFormatString="$##,###.00" DataType="System.Decimal"  DataMember="price" Name="price"  Width="100px" &amp;gt;
&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;
</description></item><item><title>why DataFormatString does not work?</title><link>http://www.intersoftsolutions.com/Community/Tags/DataFormatString/</link><pubDate>Mon, 16 Nov 2009 20:27:35 GMT</pubDate><dc:creator>rogerchen.tangshuo@gmail.com</dc:creator><category>DataFormatString</category><description>&lt;p&gt;In WebGrid 6.0&lt;/p&gt;
&lt;p&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="Caption1" DataMember="dm1" DataType="System.Decimal"&lt;br /&gt;&lt;/p&gt;&amp;nbsp;                       Name="dm1" Width="120px" &lt;strong&gt;DataFormatString="p"&lt;/strong&gt;&amp;gt;&lt;br /&gt;                        &amp;lt;CellStyle HorizontalAlign="Right" Padding-Right="5px"&amp;gt;&lt;br /&gt;                            &amp;lt;Padding Right="5px"&amp;gt;&amp;lt;/Padding&amp;gt;&lt;br /&gt;                        &amp;lt;/CellStyle&amp;gt;&lt;br /&gt;                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;br /&gt;
&lt;p&gt;but display not right. why?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item></channel></rss>