title: Asp.Net GridView not getting disabled
body: <p>In my application i am using a <code>GridView</code> and i am adding an onlick attribute to the GridView through the following Code..</p>
  
  <pre><code>  Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
  
  
      If e.Row.RowType = DataControlRowType.DataRow Then
          e.Row.Attributes("onclick") = Page.ClientScript.GetPostBackClientHyperlink(GridView1, "Select$" &amp; e.Row.RowIndex.ToString())
      End If
  </code></pre>
  
  <p>When someone selects a row in the Grid view, i want the GridView to get disabled and not allow any other selections unless the user presses a button. I tried using</p>
  
  <p><code>GridView1.Enabled = false</code></p>
  
  <p>But still the user is able to select a row.</p>
  
  <p>How can i <strong>disable</strong> the <code>GridView Selection</code> ??</p>