Class GridControlColumn
Represents the GridControl's column. Wraps the System.Windows.Forms.DataGridViewTextBoxColumn class.
Inheritance
Implements
Inherited Members
Namespace: FastReport.Dialog
Assembly: FastReport.dll
Syntax
public class GridControlColumn : Base, IComponent, IDisposable, IFRSerializable
Constructors
GridControlColumn()
Initializes a new instance of the GridControlColumn class with default settings.
Declaration
public GridControlColumn()
Properties
AutoSizeMode
Gets or sets the mode by which the column automatically adjusts its width. Wraps the System.Windows.Forms.DataGridViewColumn.AutoSizeMode property.
Declaration
public DataGridViewAutoSizeColumnMode AutoSizeMode { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.DataGridViewAutoSizeColumnMode |
DataColumn
Gets or sets the data column attached to this column.
Declaration
public string DataColumn { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DefaultCellStyle
Gets or sets the column's default cell style. Wraps the System.Windows.Forms.DataGridViewColumn.DefaultCellStyle property.
Declaration
public DataGridViewCellStyle DefaultCellStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.DataGridViewCellStyle |
FillWeight
Gets or sets a value that represents the width of the column when it is in fill mode relative to the widths of other fill-mode columns in the control. Wraps the System.Windows.Forms.DataGridViewColumn.FillWeight property.
Declaration
public float FillWeight { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
HeaderText
Gets or sets the caption text on the column's header cell. Wraps the System.Windows.Forms.DataGridViewColumn.HeaderText property.
Declaration
public string HeaderText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
This property is not relevant to this class.
Declaration
[Browsable(false)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Restrictions
This property is not relevant to this class.
Declaration
[Browsable(false)]
public Restrictions Restrictions { get; set; }
Property Value
Type | Description |
---|---|
Restrictions |
Visible
Gets or sets a value indicating whether the column is visible. Wraps the System.Windows.Forms.DataGridViewColumn.Visible property.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Width
Gets or sets the current width of the column. Wraps the System.Windows.Forms.DataGridViewColumn.Width property.
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Assign(Base)
Copies the contents of another, similar object.
Declaration
public override void Assign(Base source)
Parameters
Type | Name | Description |
---|---|---|
Base | source | Source object to copy the contents from. |
Overrides
Remarks
Call Assign to copy the properties from another object of the same type. The standard form of a call to Assign is
destination.Assign(source);
which tells the destination object to copy the contents of the source object to itself. In this method, all child objects are ignored. If you want to copy child objects, use the AssignAll method.
See Also
Serialize(FRWriter)
Serializes the object.
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
Overrides
Remarks
Do not call this method directly. You should override it if you are developing a new component for FastReport.
This method is called when the object needs to save the state. It may happen when:
- saving the report to the file or stream;
- saving the report to the designer's undo buffer;
- assigning the object to another object using the Assign(Base) or AssignAll methods;
- saving the object to the designer's clipboard;
- saving the object to the preview (when run a report).