The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

where are the field names stored?

Last post 06-26-2008, 12:23 PM by Mike.Griffin. 1 replies.
Sort Posts: Previous Next
  •  06-26-2008, 11:25 AM 10014

    where are the field names stored?

    Hi, 

    in EsDatasource: where are the field names stored? In my code I only see this:

    Code:
    <cc1:esDataSource ID="ds_xx" runat="server" AutoPaging="True" 

    AutoSorting="True" onescreateentity="ds_xx_esCreateEntity" onesselect="ds_xx_esSelect" />

     

    but some fields were selected. Where are they stored? Sometimes I would like to change the field list,

    and the gui does not allways pick them up.

    Thanks,

    Ron

     

  •  06-26-2008, 12:23 PM 10015 in reply to 10014

    Re: where are the field names stored?

    The esDataSource merely feeds the columns to whatever it is bound to, it itself doesn't store them. Look at this sample from the ones that come with the trial version:

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <br />This is intentionally very plain and simple<br /><br />
        <div>
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="EmployeeID" DataSourceID="EsDataSource1" ForeColor="#333333" GridLines="None">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundField DataField="EmployeeID" HeaderText="EmployeeID" InsertVisible="False"
                        ReadOnly="True" SortExpression="EmployeeID" />
                    <asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
                    <asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
                    <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                    <asp:BoundField DataField="BirthDate" HeaderText="BirthDate" SortExpression="BirthDate" />
                    <asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
                </Columns>
                <RowStyle BackColor="#EFF3FB" />
                <EditRowStyle BackColor="#2461BF" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <br />
    <cc1:esDataSource ID="EsDataSource1" runat="server" AutoPaging="True" AutoSorting="True" OnesCreateEntity="EsDataSource1_esCreateEntity" OnesSelect="EsDataSource1_esSelect" /> </div> </form> </body> </html>

     

    Notice how the grid has the columns ...


    EntitySpaces | Twitter | BLOG | Please honor our Software License
View as RSS news feed in XML