﻿<?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 - Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</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>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Tue, 07 Jun 2011 09:50:18 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Great news.  Thank you.&lt;/p&gt;</description></item><item><title>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Tue, 07 Jun 2011 09:48:57 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The developer team has given me the update of this issue.&lt;/p&gt;
&lt;p&gt;This Feature Request has been noted by the team and will be added in the next release, which means that this culture setting will be applied in the 2011 R2.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;-Martin-&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Thu, 02 Jun 2011 09:11:00 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Martin,&lt;/p&gt;
&lt;p&gt;Sorry I never got around to providing the sample regarding the template column, but at this point, we still need the feature to format at the row and cell level as mentioned above using different cultures.  Has this been added to 2011 R1?  The export won't be an issue once this feature is added since the values will be native values and not templated objects.  Thanks.&lt;/p&gt;</description></item><item><title>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Tue, 14 Dec 2010 22:22:33 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;&lt;br /&gt;Hello A Yousif,&lt;/p&gt;
&lt;p&gt;I have forwarded your scenario to the development team to be investigated further.&lt;/p&gt;
&lt;p&gt;You can provide me a sample based on your scenario after the new year. It would be easier for us to investigate the issue.&lt;/p&gt;
&lt;p&gt;Meanwhile, I will let the development team to work on your issue.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Tue, 14 Dec 2010 08:15:39 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Thanks Martin.  Sorry I didn't have time to provide a sample.  The end of the year is crunch time and I'm buried right now.  If you couldn't duplicate this based on my description, let me know after the new year starts and I should have time to put a sample for you.&lt;/p&gt;</description></item><item><title>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Mon, 13 Dec 2010 22:45:24 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;Hello A Yousif,&lt;/p&gt;
&lt;p&gt;I have forwarded your issue to the development team.&lt;/p&gt;
&lt;p&gt;However, about the exporting templated column issue, exporting only accepts native column type because it generally renders only textual content, while template column can contain graphics or more complex controls.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Fri, 10 Dec 2010 08:49:15 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;I really don't have the time to create the sample, but you can create it as it's very simple per the info I've provided.  Just create a grid and set it's culture to say ru-RU (Russian).  Create one of your columns as a template that holds a label and then format that column's value, during the data binding, using the another culture like en-US.  Once displayed, use the export and you'll see your template column formatted in the ru-RU culture.  For our case we use currency, so don't forget to set your data type to "System.Decimal" if you're going to also use currency.&lt;/p&gt;</description></item><item><title>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Fri, 10 Dec 2010 04:27:53 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;Hello A Yousif,&lt;/p&gt;
&lt;p&gt;I will forward and inform the development team on your issues. However, could you provide me a simple working sample that replicates the issue that you mentioned?&lt;/p&gt;
&lt;p&gt;If you can zip and attach the sample, it would be easier for me to directly forward the sample to the development team to be investigated further.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Thu, 09 Dec 2010 13:14:53 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Thanks Martin.  I found a partial workaround for now by using a template column which uses a label that's assigned the text we need formatted how we need it.&lt;/p&gt;
&lt;p&gt;This still presents several issues that you might forward to your development team:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;The column totals still use the grid culture so even though the total is there, it's incorrectly formatted&lt;/li&gt;&lt;li&gt;The export does not export the template column correctly.&amp;nbsp; When exported, the column is formatted in the grid culture&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Right now, we're having to drop the Export feature altogether as it's not usable with  how we're implementing the grid.  We really need to have the export work alongside the grid once the culture setting is added at the row/column/cell level please.&lt;/p&gt;
&lt;p&gt;This is creating a lot more work for us as we now have to write our own export routines.  Thanks.&lt;/p&gt;</description></item><item><title>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Thu, 09 Dec 2010 05:00:32 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I apologize for the misunderstanding of your issue.&lt;/p&gt;
&lt;p&gt;I have discussed with the developer team regarding this issue. Currently, it is probably a limitation from WebGrid to perform different culture in the same instance. As you said, WebGrid can only apply 1 culture and you are not able to override the culture even using InitializeCell Server-side event.&lt;/p&gt;
&lt;p&gt;I will create a Feature Request and submit it to the developer team, so that they can enhance WebGrid further.&lt;/p&gt;</description></item><item><title>Formatting Cell Number Value Separate From LayoutSettings Culture</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Formatting-Cell-Number-Value-Separate-From-LayoutSettings-Culture/</link><pubDate>Fri, 03 Dec 2010 11:35:31 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;We have a few grids that require the user see the currency figures for a specific currency format which may not be the same as the grid's culture.  For example, the user may have the grid culture set to en-US but wants to see the currency formatted in Euros via en-IE for Ireland or maybe formatted for pt-BR.  The reason we can't set the entire grid culture is we don't want to affect any other columns like dates or other numbers that need to stay formatted for the en-US culture.&lt;/p&gt;
&lt;p&gt;I can't find a way to do this right now so I need some help in doing this please.  I've tried overriding the InitializeCell but this is not working.  The grid overrides my format when it renders.&lt;/p&gt;
&lt;p&gt;Here's my OnInitializeCell override.&lt;/p&gt;&lt;pre&gt;public override bool OnInitializeCell(WebGridCell cell)
{
    bool bRet = base.OnInitializeCell(cell);

    if (cell.Column.ColumnType != ColumnType.Text)
    {
        return bRet;
    }

    DataRow[] drFilteredRows = m_dtColumns.Select(&lt;br /&gt;	"columnName = \'" &amp;#43; cell.Column.Name &amp;#43; "\'");&lt;br /&gt;
    if (drFilteredRows != null &amp;amp;&amp;amp; drFilteredRows.Length &amp;gt; 0)
    {
        DataRow dr = drFilteredRows[0];

        if (!string.IsNullOrEmpty(cell.Column.DataFormatString) &amp;amp;&amp;amp;&lt;br /&gt;	   cell.Column.DataFormatString.StartsWith("C"))
        {
            if (!string.IsNullOrEmpty(cell.Text))
            {
                cell.Text = ((decimal)cell.Value).ToString(&lt;br /&gt;		cell.Column.DataFormatString,new CultureInfo("pt-BR"));
            }
        }
    }

    return bRet;
}
&lt;/pre&gt;
&lt;p&gt;The above is hard-coded to format using the Brazillian Real as an override but after rendering, it shows up in the US dollar format.&lt;/p&gt;
&lt;p&gt;So 123456789.53 should show up as "R$ 123.456.789,53" and not "$123,456,789.53" as it does now.  So how do I accomplish this please?  Thanks.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>