title: How to fetch 'KeyValue' from Telerik RadGrid?
body: <pre><code>&lt;telerik:RadGrid ID="radGrid" runat="server" AllowPaging="true" AllowCustomPaging="True"
      GridLines="None" PageSize="20" AllowMultiRowSelection="true" ClientSettings-Selecting-AllowRowSelect="true"
      AutoGenerateColumns="false" onneeddatasource="radGrid_NeedDataSource" OnItemCreated="radGrid_ItemCreated"
      OnItemDataBound="radGrid_ItemDataBound" OnItemCommand="radGrid_ItemCommand"
      DataKeyNames="ClientID"&gt;
      &lt;mastertableview datakeynames="ID" gridlines="None" width="100%"&gt;
      &lt;PagerTemplate&gt; and so on ... &lt;/telerik:RadGrid&gt;
  </code></pre>
  
  <p><strong>Scenario</strong> : - <em>Given above is the markup of a Telerik RagGrid control I am using. I tried to access the KeyValue of the GridColumn, the usual way,</em></p>
  
  <pre><code>Int32 key = Convert.ToInt32((e.Item as GridDataItem).GetDataKeyValue("ID"));
  </code></pre>
  
  <p><strong>This is not working. Is there an alternate?</strong></p>