Advertisement
Advertisement
| 05.14.2008 at 12:54AM PDT, ID: 23400516 | Points: 500 |
|
[x]
Attachment Details
|
||
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: 39: |
The gridview:
<asp:GridView ID="GlobalContractHeaderGrid1" runat="server" AutoGenerateColumns="False"
DataKeyNames="CompanyID,DivisionID,DepartmentID,CustomerID" DataMember="GlobalContractHeader"
DataSourceID="DBDataSource1" OnRowCommand="DBDataSource1.HandleGridCommand" >
<columns>
<asp:BoundField DataField="CustomerId" HeaderText="<%$ Translation: Customer ID %>" SortExpression="CustomerId" />
<asp:BoundField DataField="CustomerPhone" HeaderText="<%$ Translation: Customer Phone %>" SortExpression="CustomerPhone" />
</columns>
</asp:GridView>
--------------------------------------------------------
The table:
<?xml version="1.0" encoding="utf-8" ?>
<table name="GlobalContractHeader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" order-by="CustomerID DESC" >
<columns>
<column name="CompanyID" type="xs:string" maxlength="36" nullable="false" key="true" session="true" />
<column name="DivisionID" type="xs:string" maxlength="36" nullable="false" key="true" session="true" />
<column name="DepartmentID" type="xs:string" maxlength="36" nullable="false" key="true" session="true" />
<column name="CustomerID" type="xs:string" maxlength="50" />
</columns>
<relations>
<relation name="CustomerInformation_Via_CustomerID" type="lookup" table="CustomerInformation" load-at-once="true">
<viewfilters>
<column name="CompanyID" target="CompanyID"/>
<column name="DivisionID" target="DivisionID"/>
<column name="DepartmentID" target="DepartmentID"/>
<column name="CustomerID" target="CustomerID"/>
</viewfilters>
<columns>
<column name="CompanyID" target="CompanyID"/>
<column name="DivisionID" target="DivisionID"/>
<column name="DepartmentID" target="DepartmentID"/>
<column name="CustomerPhone" target="CustomerPhone"/>
</columns>
</relation>
</relations>
</table>
|