110,533
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="GridLines.aspx.cs"
Inherits="Rows_GridLines" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentHolder" runat="Server">
<table cellpadding="0" cellspacing="0" style="margin-bottom: 16px">
<tr>
<td style="padding-right: 4px">
<dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Grid lines:" />
</td>
<td>
<dx:ASPxComboBox runat="server" ID="ddlGridLines" AutoPostBack="true" OnSelectedIndexChanged="ddlGridLines_SelectedIndexChanged"
SelectedIndex="2">
<Items>
<dx:ListEditItem Value="Both" />
<dx:ListEditItem Value="Horizontal" />
<dx:ListEditItem Value="Vertical" />
<dx:ListEditItem Value="None" />
</Items>
</dx:ASPxComboBox>
</td>
</tr>
</table>
<dx:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" DataSourceID="AccessDataSource1"
KeyFieldName="CustomerID" Width="100%">
<Columns>
<dx:GridViewDataColumn FieldName="ContactName" VisibleIndex="1" />
<dx:GridViewDataColumn FieldName="CompanyName" VisibleIndex="2" />
<dx:GridViewDataColumn FieldName="City" VisibleIndex="3" />
<dx:GridViewDataColumn FieldName="Region" VisibleIndex="4" />
<dx:GridViewDataColumn FieldName="Country" VisibleIndex="5" />
</Columns>
<Settings GridLines="Vertical" ShowGroupPanel="true" ShowFilterRow="true" />
</dx:ASPxGridView>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/nwind.mdb"
SelectCommand="SELECT * FROM [Customers]"></asp:AccessDataSource>
</asp:Content>