title: How to access the object data that is stored in Tag property in a gridview?
body: <p>I am creating an application using winforms API and C#.</p>
  
  <p>I have gridview, some of the rows have an object associated with a row. The object is stored in the <code>Tag</code> property like so</p>
  
  <pre><code>var tagObj = new AdditionalInfoPhoneActivations();
  rowInfo.Tag = tagObj;
  radGridView1.Rows.Add(rowInfo);
  </code></pre>
  
  <p>here is how I am trying to access the tag property which is not working</p>
  
  <pre><code>    void radGridView1_CommandCellClick(object sender, EventArgs e) {
          var tagObj = new AdditionalInfoPhoneActivations();
          var x = (sender as CellFormattingEventArgs);
          tagObj = e.CellElement.Tag;
  
          Common.Alert("You ordered " + tagObj.serialNumber + " " + tagObj.saleType);
      }
  </code></pre>
  
  <p>This is the error that I am running into</p>
  
  <pre><code>Error   2   'System.EventArgs' does not contain a definition for 'CellElement' and no extension method 'CellElement' accepting a first argument of type 'System.EventArgs' could be found (are you missing a using directive or an assembly reference?) C:\Users\User\C# Projects\RM\RM\Register.cs 175 24  RM
  </code></pre>