title: Telerik CellFormatting column color is not working
body: <p>I want to change color for the columns in the RadGrid Telerik. I want to give a color to the <code>col index 2,3</code> and different color the to <code>col Index 0,1</code>.</p>
  
  <p>The color for col 2,3 is working but for<code>Col index  0,1 is not working,</code> there is no color in the index <code>Col index  0 &amp; 1</code></p>
  
  <p>This is the code:</p>
  
  <pre><code>bool dontRunHandler;
  private void datagridview_CellFormatting(object sender, CellFormattingEventArgs e)
  {
  
      e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
      e.CellElement.ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local);
      e.CellElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local);
      e.CellElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
  
      if (dontRunHandler == false)
      {
          if (e.CellElement.ColumnIndex != 2 &amp;&amp; e.CellElement.ColumnIndex != 3 ) return;
          e.CellElement.DrawFill = true;
          e.CellElement.NumberOfColors = 1;
          e.CellElement.BackColor = Color.LightSlateGray;
          e.CellElement.GradientStyle = GradientStyles.Linear;
  
  
      }
  
      else
      {
          if (e.CellElement.ColumnIndex != 0 &amp;&amp; e.CellElement.ColumnIndex != 1 ) return;
          e.CellElement.DrawFill = true;
          e.CellElement.NumberOfColors = 1;
          e.CellElement.BackColor = Color.MediumVioletRed;
          e.CellElement.GradientStyle = GradientStyles.Linear;
      }
  
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/9LgpF.jpg" alt="enter image description here"></p>