<div class="row"> <table id="header" style="background-color: #e0b4b4; font-size:small; height:30px"> <tr> <td style="font-weight: bold; width:70px; border: 1px solid black"> Type </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Product Details </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Asset No </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Product Description </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Brand </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Serial No </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Barcode </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Vendor </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Vendor Information </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Purchase Date </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Warrenty Year </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Warrenty Expire </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Remarks </td> <td style="font-weight: bold; width:70px; border: 1px solid black"> Action </td> </tr> </table> <div style="font-size:small; height:600px; overflow-y: scroll; overflow-x:auto;"> <asp:GridView ID="empgrid" runat="server" CssClass="table table-striped" GridLines="Both" DataKeyNames="ID" AutoGenerateColumns="false"> <Columns> <asp:BoundField DataField="Type"/> <asp:BoundField DataField="Prodtype"/> <asp:BoundField DataField="Assetno"/> <asp:BoundField DataField="Prodesc"/> <asp:BoundField DataField="Brand"/> <asp:BoundField DataField="Slno"/> <asp:BoundField DataField="Barcode"/> <asp:BoundField DataField="Vendor"/> <asp:BoundField DataField="Vendorinfo"/> <asp:BoundField DataField="Purchasedate" DataFormatString = "{0:dd/MM/yyyy}"/> <asp:BoundField DataField="Warryear" DataFormatString = "{0:dd/MM/yyyy}"/> <asp:BoundField DataField="Warrexp" DataFormatString = "{0:dd/MM/yyyy}"/> <asp:BoundField DataField="Remarks"/> <asp:TemplateField> <ItemTemplate> <span onclick="return confirm('Are you sure to delete?')"> <asp:Button TID="lnkDelete" text="Delete" runat="server" /> </span> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> </div> </div>
how can i fixed html table margin with asp Gridview
CssClass
DataGrid
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)