﻿<?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 - WebGrid - changing values of cell client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---changing-values-of-cell-client-side/</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>WebGrid - changing values of cell client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---changing-values-of-cell-client-side/</link><pubDate>Thu, 11 Nov 2010 22:07:35 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt;Hi Tenika,&lt;/p&gt;
&lt;p&gt;You can add another parameter to your code, like below:&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;&lt;pre&gt;selectedRow.GetCells().GetNamedItem("TaxCodeDesc").SetText("Test here", true, true);

selectedRow.GetCells().GetNamedItem("TaxCodeDesc").SetValue("0", true, true); 

&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-size: 13px"&gt;But it will only set the Text and the Value, It will not save to your database. Since its already&amp;nbsp;No Edit default behavior to not change any data.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;But it will only set the Text and the Value, It will not save to your database. Since its already No Edit default behavior to not change any data.&lt;/span&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;If you want to change the database as well you can use either your work around and using ForceNoEdit method. You can refer to our documentation for ForceNoEdit method.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Hope this helps,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Thank you and have a nice weekend.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Regards,&lt;br /&gt;Niven.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid - changing values of cell client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---changing-values-of-cell-client-side/</link><pubDate>Thu, 11 Nov 2010 17:19:22 GMT</pubDate><dc:creator>tlusby</dc:creator><description>&lt;p&gt;My work around was changing the EditType="Textbox" make my change then changing the EditType = "NoEdit".&lt;/p&gt;</description></item><item><title>WebGrid - changing values of cell client side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid---changing-values-of-cell-client-side/</link><pubDate>Thu, 11 Nov 2010 17:14:38 GMT</pubDate><dc:creator>tlusby</dc:creator><description>&lt;p&gt;I have two columns that are both TextBox.  Column A is editable and Column B is set to &lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;p&gt;EditType&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="NoEdit"&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;EditType&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="NoEdit"&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;In the function &lt;span style="font-size: 13px"&gt;OnCellValidate I locate the cell for Column B and I want to set the value and text.&amp;nbsp; However, it's not setting the values.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;
selectedRow.GetCells().GetNamedItem(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"TaxCodeDesc"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;).SetText("Test here", &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); 

selectedRow.GetCells().GetNamedItem(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"TaxCodeDesc"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;).SetValue("0");&lt;/span&gt; &lt;p&gt;&lt;span style="font-size: 13px"&gt;If the column is set to &lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;EditType&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="TextBox" the above code works.  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Why?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/span&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>