23 строки
1.5 KiB
Plaintext
23 строки
1.5 KiB
Plaintext
<%@ Page Title="Grid-Column Chooser-ASP.NET-SYNCFUSION" Language="C#" MetaDescription="This demo explains how to render the column chooser button that is used to show or hide columns in Syncfusion ASP.NET Web Forms DataGrid control." MasterPageFile="~/Samplebrowser.Master" AutoEventWireup="true" CodeBehind="ColumnChooser.aspx.cs" Inherits="WebSampleBrowser.Grid.ColumnChooser" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="SampleHeading" runat="server">
|
|
<span class="sampleName">Grid / Column Chooser</span>
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="ControlContent" runat="server" ContentPlaceHolderID="ControlsSection">
|
|
<div style="margin-top:10px;">
|
|
<ej:Grid ID="FlatGrid" runat="server" ShowColumnChooser="true" ShowStackedHeader="true" AllowSorting="True" AllowPaging="True">
|
|
<Columns>
|
|
<ej:Column Field="OrderID" HeaderText="Order ID" IsPrimaryKey="True" TextAlign="Right" Width="75" />
|
|
<ej:Column Field="CustomerID" HeaderText="Customer ID" Width="80" Visible="false" />
|
|
<ej:Column Field="EmployeeID" HeaderText="Employee ID" TextAlign="Right" Width="75" />
|
|
<ej:Column Field="Freight" HeaderText="Freight" TextAlign="Right" Width="75" Format="{0:C}" />
|
|
<ej:Column Field="OrderDate" HeaderText="Order Date" TextAlign="Right" Width="80" Format="{0:MM/dd/yyyy}" />
|
|
<ej:Column Field="ShipCity" HeaderText="Ship City" Width="110" />
|
|
</Columns>
|
|
</ej:Grid>
|
|
</div>
|
|
</asp:Content>
|
|
|
|
|