GridControl() Constructor

Creates a new GridControl control.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public GridControl()
Public Sub New

Remarks

Use the constructor to create a new grid control at runtime. Note that the control's Parent property should be initialized to make the control available on form.

During creation and initialization of a grid control a GridView is created as the main View. You can change this default View by assigning a new View to the grid control's GridControl.MainView property.

Use the GridControl.DataSource and GridControl.DataMember properties to bind the grid to a data source. Please refer to the Data Binding and Master-Detail Relationships topics for details.

See Also