c# - ASP.Net GridView - fire datarow click event except on checkbox selection -


i'm implenting functionality of inbox have gridview , code follows:

<asp:gridview width="100%" id="grdinbox" autogeneratecolumns="false" allowpaging="true"           runat="server" onrowcommand="grdinbox_rowcommand" gridlines="none" cssclass="mgrid"          pagerstyle-cssclass="pgr" alternatingrowstyle-cssclass="alt"             onrowdatabound="grdinbox_rowdatabound">         <columns>             <asp:templatefield>                 <itemtemplate>                     <asp:checkbox id="mailselector" runat="server" />                 </itemtemplate>             </asp:templatefield>              <asp:boundfield datafield="sender" headertext="sender" sortexpression="sender" />             <asp:boundfield datafield="subject" headertext="subject" sortexpression="subject" />             <asp:boundfield datafield="size" headertext="size" />             <asp:boundfield datafield="sent" headertext="sent at" sortexpression="sent" />          </columns>          </asp:gridview> 

also have registered "onclick" event follows:

e.row.attributes["onclick"] = "location.href='mailcontent.aspx?id=" + e.row.uniqueid + "'"; 

but here if select checkbox onclick event gets fired. dont want checkbox fire event. should act selection of rows. shall do?

i hope, here can find explanation how solve issue.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -