<Columns> <asp:TemplateField HeaderText="Mobile Number"> <ItemStyle width="50px" HorizontalAlign="Center" VerticalAlign="Middle" /> <ItemTemplate> <asp:LinkButton Text='<%#DataBinder.Eval(Container.DataItem,"MobileNo") %>' runat="server" CommandName="MobileNo" OnClick="tbl"/></ItemTemplate> </asp:TemplateField> <asp:BoundField HeaderText="Barcode" DataField="Barcode" > <HeaderStyle HorizontalAlign="Left" /> <ItemStyle Height="25px" HorizontalAlign="Left" /> </asp:BoundField> <asp:BoundField HeaderText="User" DataField="UserName" > <HeaderStyle HorizontalAlign="Left" /& <ItemStyle Height="25px" HorizontalAlign="Left" /&g </asp:BoundField> <asp:BoundField HeaderText="Audited On" DataField="AuditOn" > <HeaderStyle HorizontalAlign="Left" /> <ItemStyle Height="25px" HorizontalAlign="Left" /> </asp:BoundField> <asp:BoundField HeaderText="QC Status" DataField="Status" > <HeaderStyle HorizontalAlign="Left" /> <ItemStyle Height="25px" HorizontalAlign="Left" /> </asp:BoundField> </Columns>
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "MobileNo") { //code to call/display the html table. } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)