Gridview Datakeys problem
<p>I am trying to get the LocationID for the row in the gridview. grdFavoriteMerchant is the gridID. I am new to using gridview. </p>

<p>I am using this part of code to get LocationID but it gets MerchantID when row.RowIndex = 0. </p>

<pre><code>int LocationID = Convert.ToInt32(grdFavoriteMerchant.DataKeys[row.RowIndex].Value);
</code></pre>

<p>In the aspx, i have <code>DataKeyNames="Merchant_id, zipcode, Location_id"</code></p>

<p>I am wondering how i can give hardcoded "LocationID" in the above code to get LocationID back. </p>

<p>I hope i am clear :)</p>

<p>Thanks in advance</p>
