title: How to find Grid view button click event?
body: <pre><code>Button btnAddrecord = (Button)sender;
  GridViewRow gvr =(GridViewRow)btnAddrecord.NamingContainer;
  if (btnAddrecord.CommandName == "onAddMaterial")
  </code></pre>