title: How to disable and Enable ItemTemplate LinkButton based on GridView first and last row?
body: <p>I have a gridview with text boxs and two LinkButton Up and Down, I want to make the LinkButton Up and down as Disable, The condition is, Linkbutton Up must be disable for the first row and Linkbutton Down must be disable for the last row.</p>
  
  <p>I am trying to do in onRowDataBound.. But I am unable to do..</p>
  
  <pre><code>foreach (GridViewRow row in GridView1.Rows)
  {
    // some code?
  }
  </code></pre>
  
  <p>Please some one tell me how to do that.. with some test exp.</p>