﻿<?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 do I Calculate a NoEdit, Not Bound WebGridColumn?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-I-Calculate-a-NoEdit-Not-Bound-WebGridColumn/</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 do I Calculate a NoEdit, Not Bound WebGridColumn?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-I-Calculate-a-NoEdit-Not-Bound-WebGridColumn/</link><pubDate>Tue, 16 Mar 2010 21:36:37 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Glad to hear that CreateFormula() method suit with your scenario.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How do I Calculate a NoEdit, Not Bound WebGridColumn?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-I-Calculate-a-NoEdit-Not-Bound-WebGridColumn/</link><pubDate>Tue, 16 Mar 2010 16:45:42 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It works.&lt;/p&gt;
&lt;p&gt;Pretty simple with the RootTable.CreateFormula() Method.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;</description></item><item><title>How do I Calculate a NoEdit, Not Bound WebGridColumn?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-I-Calculate-a-NoEdit-Not-Bound-WebGridColumn/</link><pubDate>Thu, 11 Mar 2010 20:50:57 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I enclosed one simple sample of WebGrid that has an unbound column with no edit. The grid is bind to “Order Details” table of Northwind database.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;An unbound column named “SubTotal” added on InitializeLayout server side event. This column also has DataFormatString set and its EditType is set to “NoEdit”.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;On InitializeRow server side event, there is a calculation to count the amount of subtotal based on [UnitPrice], [Quantity], and [Discount] column. This calculation is made to give initial value on [SubTotal] column.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;OnInitialize client side event of WebGrid, a formula is added to [SubTotal] column by using CreateFormula() method.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;For more detail information, please check the attached sample.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How do I Calculate a NoEdit, Not Bound WebGridColumn?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-do-I-Calculate-a-NoEdit-Not-Bound-WebGridColumn/</link><pubDate>Wed, 10 Mar 2010 19:50:44 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;1. How do I Calculate a NoEdit, Not Bound WebGridColumn?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I followed instructions in the following link, but if the EditType is NoEdit it does not work.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.intersoftpt.com/docs/webgrid/5.0.7200/Calculate%20a%20cell%20after%20a%20value%20is%20filled.html"&gt;http://support.intersoftpt.com/docs/webgrid/5.0.7200/Calculate%20a%20cell%20after%20a%20value%20is%20filled.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have attached a sample I am using.&lt;/p&gt;
&lt;p&gt;The Calculated Cell is Total_WebGridColumn.&lt;/p&gt;
&lt;p&gt;The ExitEditMode Client Side Event is OrderDetails_WebGrid_OnExitEditMode.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;2. Also is there a way to format the cell per the DataFormatString? i.e. DataFormatString="$#,###.00"&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;3. What is the best Client Event to Calculate the WebGridColumn on an Initial Load or Refresh?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;4. What is the best Client Event to Calculate the WebGridColumn on an Add New Row?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;</description></item></channel></rss>