title: Telerik RadGrid GridDataItem - how to determine if column exists?
body: <p>I'm using a base class to modify the behavior of any Telerik RadGrid that appears on my ASP.Net pages.  In the base class, I want to perform certain operations (set Css, tool tips, etc) on many common columns, but not every common column exists in every grid.</p>
  
  <p>In the ItemDataBound event I'm getting an instance to the GridDataItem and in turn I want to get a reference to one or more of the contained cells of the GridDataItem:</p>
  
  <pre><code>var cell = gridDataItem["ColumnUniqueName"]
  </code></pre>
  
  <p>Problem is that this throws a GridException if the named column doesn't exist:</p>
  
  <p>Cannot find a cell bound to column name 'ColumnUniqueName'</p>
  
  <p>Is there a way to test for existence of a column by name before referencing it or am I 
  stuck using try catch?</p>