summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page3
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample4.page11
2 files changed, 3 insertions, 11 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page
index 6d3397ee..be2f80bc 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page
@@ -46,8 +46,7 @@
HeaderText="In-stock"
DataField="instock"
/>
- <com:TTemplateColumn>
- <prop:HeaderTemplate>Rating</prop:HeaderTemplate>
+ <com:TTemplateColumn HeaderText="Rating">
<prop:ItemTemplate>
<img src="images/star<%#$this->NamingContainer->DataItem['rating']%>.gif" alt="" />
</prop:ItemTemplate>
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample4.page b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample4.page
index 35d6c612..050182ea 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample4.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample4.page
@@ -45,17 +45,10 @@
HeaderStyle.Wrap="false"
DataField="instock"
/>
- <com:TTemplateColumn SortExpression="rating">
- <prop:HeaderTemplate>
- <com:TLinkButton
- Text="Rating"
- CommandName="Sort"
- CommandParameter="rating"
- CausesValidation="false" />
- </prop:HeaderTemplate>
+ <com:TTemplateColumn HeaderText="Rating" SortExpression="rating">
<prop:ItemTemplate>
<img src="images/star<%#$this->NamingContainer->DataItem['rating']%>.gif" alt="" />
- </prop:ItemTemplate>
+ </prop:ItemTemplate>
</com:TTemplateColumn>
</com:TDataGrid>