title: How to stop whole page refresh on click of gridview row
body: <p>On click of grid view row i don't want the whole page to reloading. Below is the Code that getting called.</p>
  
  <pre><code>protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
  {
      try
      {
          if (e.Row.RowType == DataControlRowType.DataRow)
          {
              e.Row.Attributes["onmouseover"] = "this.style.cursor='pointer';this.style.textdecoration='underline';this.style.background='#DDDDDD';";
              if ((e.Row.RowIndex % 2) == 0)  // if even row
                   e.Row.Attributes["onmouseout"] = "this.style.textdecoration='none';this.style.cursor='pointer';this.style.background='#EFF3FB';";
              else  
                   e.Row.Attributes["onmouseout"] = "this.style.textdecoration='none';this.style.cursor='pointer';this.style.background='White';";
                e.Row.Attributes.Add("onclick", "Javascript:__doPostBack('myClick','" + e.Row.RowIndex + "');");
  
  
              }
          }
  }
  </code></pre>