summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample2.page
diff options
context:
space:
mode:
authorxue <>2006-02-03 22:17:33 +0000
committerxue <>2006-02-03 22:17:33 +0000
commit979430b5bf60e5857846ecb561404a89c02cefcd (patch)
treecc8d51f086da6b36542e5ee9622329590fc72733 /demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample2.page
parentbaac41fc1e52c2902feabf778915195042b196b0 (diff)
Completed datagrid tutorial part one and added a new datagrid sample.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample2.page')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample2.page40
1 files changed, 32 insertions, 8 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample2.page b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample2.page
index c810708d..1a38c90d 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample2.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample2.page
@@ -4,22 +4,46 @@
<h2>Using Manually Specified Columns</h2>
<com:TDataGrid
+ Width="700px"
ID="DataGrid"
AutoGenerateColumns="false"
EnableViewState="false"
- HeaderStyle.BackColor="silver"
- ItemStyle.BackColor="lightblue"
+ HeaderStyle.BackColor="black"
+ HeaderStyle.ForeColor="white"
+ ItemStyle.BackColor="#BFCFFF"
ItemStyle.Font.Italic="true"
- AlternatingItemStyle.BackColor="lightgreen">
+ AlternatingItemStyle.BackColor="#E6ECFF">
+ <com:THyperLinkColumn
+ HeaderText="Book Title"
+ DataTextField="title"
+ DataNavigateUrlField="ISBN"
+ DataNavigateUrlFormatString="http://www.amazon.com/gp/product/%s"
+ Target="_blank"
+ />
+ <com:TBoundColumn
+ HeaderText="Publisher"
+ DataField="publisher"
+ />
<com:TBoundColumn
- ItemStyle.BackColor="silver"
- HeaderText="Name"
- DataField="name"
+ ItemStyle.HorizontalAlign="Right"
+ ItemStyle.Wrap="false"
+ ItemStyle.Font.Italic="false"
+ ItemStyle.ForeColor="green"
+ HeaderText="Price"
+ DataField="price"
+ DataFormatString="$%.2f"
/>
<com:TCheckBoxColumn
- HeaderText="Imported"
- DataField="imported" />
+ HeaderText="In-stock"
+ DataField="instock"
+ />
+ <com:TTemplateColumn>
+ <prop:HeaderTemplate>Rating</prop:HeaderTemplate>
+ <prop:ItemTemplate>
+ <img src="images/star<%#$this->NamingContainer->DataItem['rating']%>.gif" alt="" />
+ </prop:ItemTemplate>
+ </com:TTemplateColumn>
</com:TDataGrid>
</com:TContent> \ No newline at end of file