<asp:GridView ID="grdsearch" runat="server" AutoGenerateColumns="False" onrowcreated="grdsearch_RowCreated" onrowdeleting="grdsearch_RowDeleting" DataKeyNames="cust_id" Width="750px"> <Columns> <asp:BoundField DataField="cust_id" HeaderText="Customer Id" ItemStyle-Width="200px" ItemStyle-VerticalAlign="Middle" > <ItemStyle VerticalAlign="Middle" Width="200px" /> </asp:BoundField> <asp:BoundField DataField="cust_name" HeaderText="Customer Name" ItemStyle-Width="200px" ItemStyle-VerticalAlign="Middle" > <HeaderStyle Width="30%" /> <ItemStyle VerticalAlign="Middle" Width="40%" /> </asp:BoundField> <asp:BoundField DataField="cust_address" HeaderText="Address" ItemStyle-Width="200px" ItemStyle-VerticalAlign="Middle" > <HeaderStyle Width="500px" /> <ItemStyle VerticalAlign="Middle" Width="700px" Wrap="False" /> </asp:BoundField> <asp:BoundField DataField="cust_city" HeaderText="City" ItemStyle-Width="200px" ItemStyle-VerticalAlign="Middle" > <ItemStyle VerticalAlign="Middle" Width="200px" /> </asp:BoundField> <asp:BoundField DataField="cust_telephone" HeaderText="Telephone" ItemStyle-Width="200px" ItemStyle-VerticalAlign="Middle" > <ItemStyle VerticalAlign="Middle" Width="200px" /> </asp:BoundField> <asp:BoundField DataField="cust_email" HeaderText="Email Id" /> <asp:BoundField DataField="sales_contact_prsn" HeaderText="Sales Contact Person" /> <asp:BoundField DataField="sales_mob_no" HeaderText="Sales Mobile Number" /> <asp:CommandField ShowDeleteButton="True" ButtonType="Button" HeaderText="Delete" /> </Columns> <RowStyle Wrap="False" BorderWidth="10px" /> <SelectedRowStyle CssClass="grdselectback" /> </asp:GridView>
ItemStyle-Width="5%" ItemStyle-Wrap="true"
<FooterStyle Width="112px" /> <HeaderStyle Width="112px" /> <ItemStyle Width="112px" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)