TBoundColumn represents a column that is bound to a field in a data source. The cells in the column will be displayed using the data indexed by DataField. You can customize the display by setting DataFormatString.
If ReadOnly is false, TBoundColumn will display cells in edit mode with textboxes. Otherwise, a static text is displayed.
Properties
DataField, string, kept in viewstate
Gets or sets the name of the data field associated with this column.
DataFormatString, string, kept in viewstate
Gets or sets the string that is used to format the DataField value for display.
The format string is used as the first argument to the sprintf() function.
ReadOnly, boolean, default=false, kept in viewstate
Gets or sets the value indicating whether the data in this column is read-only.
Initializes the specified cell to its initial values.
This method overrides the parent implementation. It creates a textbox for item in edit mode and the column is not read-only. Otherwise it displays a static text. The caption of the button and the static text are retrieved from the datasource.