RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataGrid Class

TDataGrid generates an HTML table to display a dataset in an XML data packet.

Pascal
TDataGrid = class(TCustomDataGrid);
C++
class TDataGrid : public TCustomDataGrid;

MidItems

Add TDataGrid to the Web items of a TDataForm component (or a layout group that is a child of a TDataForm component.) TDataGrid generates an HTML table that displays multiple records from a dataset as a set of rows and columns.  

Each TDataGrid object maintains a list of Web items that generate the individual fields (columns) of the table. These Web items can be from the following classes: TTextColumn, TSelectOptionColumn, TTextAreaColumn, and TStatusColumn. You can bind the data grid to an XML data packet or dataset field within an XML data packet. The column Web items can then use that binding to determine the source of the data they display. 

You can also use the properties of TDataGrid to affect the appearance of the generated table. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!