From 979430b5bf60e5857846ecb561404a89c02cefcd Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 3 Feb 2006 22:17:33 +0000 Subject: Completed datagrid tutorial part one and added a new datagrid sample. --- .../quickstart/protected/pages/Controls/DataGrid1.page | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'demos/quickstart/protected/pages/Controls/DataGrid1.page') diff --git a/demos/quickstart/protected/pages/Controls/DataGrid1.page b/demos/quickstart/protected/pages/Controls/DataGrid1.page index 27e5a777..b7d6fe8f 100644 --- a/demos/quickstart/protected/pages/Controls/DataGrid1.page +++ b/demos/quickstart/protected/pages/Controls/DataGrid1.page @@ -21,6 +21,7 @@ PRADO provides five types of columns:
-The following example displays a list of computer product information using a TDataGrid. Columns are automatically generated. To populate datagrid items with the data, dataBind() is invoked for the datagrid in the onLoad method of the page, +The following example displays a list of computer product information using a TDataGrid. Columns are automatically generated. Pay attention to how item styles are specified and inherited. The data are populated into the datagrid using the follow code, which is common among most datagrid applications,
-Using automatically generated columns gives a quick way of browsing tabular data. In real applications, however, automatically generated columns are often not enough because developers have no way configuring their properties. Manually specified columns are thus more desirable. +Using automatically generated columns gives a quick way of browsing tabular data. In real applications, however, automatically generated columns are often not sufficient because developers have no way customizing their appearance. Manually specified columns are thus more desirable.
To manually specify columns, set AutoGenerateColumns to false, and specify the columns in a template like the following, @@ -92,8 +93,19 @@ To manually specify columns, set AutoGenerateColumns to false, and spec </com:TDataGrid>
-Note, if AutoGenerateColumns is true and there are manually specified columns, the automatically generated columns will be appended to the manually specified columns. Also note, the datagrid's Columns property only contains manually specified columns. +Note, if AutoGenerateColumns is true and there are manually specified columns, the automatically generated columns will be appended to the manually specified columns. Also note, the datagrid's Columns property contains only manually specified columns and no automatically generated ones.
++The following example uses manually specified columns to show a list of book information, +
+Pay attention to how item (row) styles and column styles cooperate together to affect the appearance of the cells in the datagrid.