RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataGrid Class

TCustomDataGrid is the base class for Web items that generate an HTML table to display a dataset in an XML data packet.

Pascal
TCustomDataGrid = class(TXMLDisplayGroup, IDataSetComponent);
C++
class TCustomDataGrid : public TXMLDisplayGroup, public IDataSetComponent;

MidItems

Use TCustomDataGrid as a base class for Web items that generate an HTML table to display multiple records from a dataset as a set of rows and columns. Each TCustomDataGrid 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. 

TCustomDataGrid introduces a number of properties that affect the appearance of the generated table. 

In order to let other Web items use the HTML table that the data grid generates, TCustomDataGrid inherits the IWebContent interface from TWebControlGroup

Do not create instances of TCustomDataGrid. Instead, use a descendant of TCustomDataGrid such as TDataGrid

 

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