-
Notifications
You must be signed in to change notification settings - Fork 3
/
Default.aspx
38 lines (36 loc) · 1.9 KB
/
Default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApp.Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<dx:ASPxGridView ID="MasterGridView" runat="server" AutoGenerateColumns="False" SettingsPager-PageSize="3"
KeyFieldName="ID" OnRowUpdating="MasterGridView_RowUpdating" Width="588px" OnRowDeleting="MasterGridView_RowDeleting" OnRowInserting="MasterGridView_RowInserting">
<Columns>
<dx:GridViewCommandColumn ShowEditButton="True" ShowDeleteButton="True" ShowNewButton="True" />
<dx:GridViewDataTextColumn FieldName="ID" ReadOnly="True" />
<dx:GridViewDataTextColumn FieldName="Data" />
</Columns>
<SettingsDetail ShowDetailRow="True" />
<Templates>
<DetailRow>
<dx:ASPxGridView ID="DetailGridView" runat="server" AutoGenerateColumns="False" SettingsPager-PageSize="4"
KeyFieldName="ID" OnBeforePerformDataSelect="DetailGridView_BeforePerformDataSelect"
OnRowUpdating="MasterGridView_RowUpdating" Width="100%">
<Columns>
<dx:GridViewCommandColumn ShowEditButton="True" />
<dx:GridViewDataTextColumn FieldName="ID" ReadOnly="True" />
<dx:GridViewDataTextColumn FieldName="MasterID" ReadOnly="True" />
<dx:GridViewDataTextColumn FieldName="Data" />
</Columns>
</dx:ASPxGridView>
</DetailRow>
</Templates>
</dx:ASPxGridView>
</div>
</form>
</body>
</html>