|
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="SDXGridWithAccessDataSourceSample.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="SDXGridControl"
Namespace="SDXGridControl" TagPrefix="cc2" %>
<%@ Register Assembly="SDXGridControl" Namespace="SDXGridControl" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<table border="0">
<tr>
<td width="100%">
<cc1:SDXGrid ID="SDXGrid1" runat="server" AutoGenerateColumns="False" BorderColor="#ADAA9C"
BorderWidth="1px" Width="1022px" OnOnUpdate="SDXGrid1_OnUpdate" DataSourceID="AccessDataSource1" ResourcePath="SDXGrid" DebugMode="False" AllowEditTemplate="true" AllowPaging="True" CellSpacing="1" PageSize="5" AllowSorting="true">
<SelectorItemStyle BackColor="Gray" BorderColor="#F7EFE7" />
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
<asp:BoundField DataField="Age" HeaderText="Age" SortExpression="Age" />
<asp:BoundField DataField="Sex" HeaderText="Sex" SortExpression="Sex" />
<asp:BoundField DataField="BirthDate" HeaderText="BirthDate" SortExpression="BirthDate" />
<asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" />
<asp:BoundField DataField="Married" HeaderText="Married" SortExpression="Married" />
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
</Columns>
<GroupByTableStyle BackColor="Gray" ForeColor="White" CellPadding="1" CellSpacing="1" Font-Names="Microsoft Sans Serif"
Font-Size="10pt" />
<GroupByTableItemStyle BackColor="Silver" ForeColor="White" />
<SearchStyle BackColor="#CEF3CE" Font-Names="Microsoft Sans Serif" Font-Size="10pt" />
<RowStyle BorderColor="#ADAA9C" Font-Names="Microsoft Sans Serif" Font-Size="10pt" />
<NavigatorStyle BackColor="Gray" BorderColor="#9C9ACE" />
<SelectedRowStyle BackColor="#FF8000" />
<PagerStyle BackColor="White" Font-Names="Microsoft Sans Serif" Font-Size="10pt" />
<HeaderStyle BackColor="Gray" BorderColor="#F7EFE7" Font-Names="Microsoft Sans Serif" ForeColor="White"
Font-Size="10pt" />
<AlternatingRowStyle BorderColor="#ADAA9C" Font-Names="Microsoft Sans Serif" Font-Size="10pt" />
<EditRowStyle ForeColor="#C0C000" />
<EmptyDataTemplate>
<table style="background-color: Navy">
<tr>
<td>
<input id="#ID" name="#ID" type="text" /><br />
<input id="#Name" name="#Name" type="text" /> <br />
<input id="Checkbox1" name="#Married" type="checkbox" /><br />
<input id="Radio1" name="#Sex" type="radio" value="M" /><br />
<input id="Radio2" name="#Sex" type="radio" value="F" /><br />
<br />
<input id="Button1" onclick="SDXGrid1.Rows.ApplyChanges()" type="button" value="OK" />
<input id="Button2" onclick="SDXGrid1.Rows.CancelChanges()" type="button" value="Cancel" />
</td>
</tr>
</table>
</EmptyDataTemplate>
</cc1:SDXGrid>
</td>
</tr>
</table>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/test.mdb"
SelectCommand="SELECT [ID], [Note], [Married], [Name], [Age], [Sex], [Country], [BirthDate] FROM [Users]">
</asp:AccessDataSource>
<br />
<br />
</form>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.