title: How to change the value of a cell in a gridview at runtime?
body: <h1>Details</h1>
  <p>I have a <code>datagridview</code> that manipulate data from a DataBase. I have a column that has numeric value and each number is representation of a string value, for example,</p>
  <pre><code>0 =&gt; &quot;group 1&quot;, 
  1 =&gt; &quot;group 2&quot; 
  and so on...
  </code></pre>
  <p>User must see this data as an readable format, meaning 0 =&gt; &quot;group 1&quot;. something like this:</p>
  <pre><code>id          priceGroupID
  ----------- ------------
  1234        -1 =&gt; &quot;group -1&quot;
  36968       0  =&gt; &quot;group  0&quot;
  1           2  =&gt; &quot;group  2&quot;
  2           2  =&gt; &quot;group  2&quot;
  3           2  =&gt; &quot;group  2&quot;
  1003        2  =&gt; &quot;group  2&quot;
  </code></pre>
  <p>in this link: (<a href="https://stackoverflow.com/questions/10314996/changing-values-in-datagridview-depending-on-existing-values">stackoverflow.com/questions/10314996/…</a>) represent an idea, but I want something else. something more powerful. don't be shy, if there is no other way please tell me that there is not.</p>
  <h1>Summary and questions</h1>
  <p>so in brief:</p>
  <ul>
  <li>I want to display this data in the Gridview without any change in my db.</li>
  <li>I want the proposed format. Is there a simple way to make that format, meaning <code>n =&gt; &quot;group m&quot;</code>.</li>
  <li>cellformatting is not what I'm wanting here. CellFormatting just formats the cell in terms of the data format. (<a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellformatting(v=vs.110).aspx" rel="nofollow noreferrer">msdn</a>)</li>
  </ul>
  <p>and one more thing: my programming language is c# in the windows app.</p>
  <p>I hope to say what I mean.</p>
  <p>thanks in advance.</p>