Click here to Skip to main content
15,881,172 members
Articles / Web Development / ASP.NET

SDXGrid V1.0.1.5 (VS 2005)

Rate me:
Please Sign up or sign in to vote.
4.71/5 (41 votes)
14 Jun 20074 min read 88.7K   3.2K   82  
SDXGrid, is a comprehensive data grid component for Microsoft .NET 2.0 web application developers, easing the exhausting process of implementing the necessary code for sorting, navigation, grouping, searching, and real time data editing in a simple data representation object.
<%@ 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" />&nbsp;<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>
        &nbsp;<br />
        <br />
        &nbsp; &nbsp;
    </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.

License

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


Written By
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions