티스토리 뷰

728x90
반응형
  <style type="text/css">
      .GridView
        {
         background-color:White;
        }
        .GridViewLine
        {         
         border-bottom:1px solid;
         border-bottom-color:#A0A0A0;
        }
        .GridviewAlternating
        { 
         border-bottom:1px solid;
         background-color:#F0F0F0;
         border-bottom-color:#A0A0A0;
        }
    </style>


 <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                        BorderWidth="0px" DataKeyNames="No" DataSourceID="SqlDataSourceMovieList"
                                        ShowHeader="False" GridLines="None" CssClass="GridView">
                                        <RowStyle CssClass="GridViewLine" />
                                        <AlternatingRowStyle CssClass="GridviewAlternating" />
                                        <Columns>
                                            <asp:BoundField DataField="subject" HeaderText="subject"
                                                SortExpression="subject" >
                                            <ItemStyle Width="360px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="companyName" HeaderText="companyName"
                                                SortExpression="companyName" >
                                            <ItemStyle Width="190px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="makeStartDate" HeaderText="makeStartDate"
                                                SortExpression="makeStartDate" DataFormatString="{0:d}" >
                                            <ItemStyle HorizontalAlign="Center" Width="90px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="makeEndDate" HeaderText="makeEndDate"
                                                SortExpression="makeEndDate" DataFormatString="{0:d}" >
                                            <ItemStyle HorizontalAlign="Center" Width="90px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="processionStatus" HeaderText="processionStatus"
                                                SortExpression="processionStatus" >
                                            <ItemStyle HorizontalAlign="Center" Width="50px" />
                                            </asp:BoundField>
                                        </Columns>
                                    </asp:GridView>


결과물

728x90
반응형