Back to Devexpress

GridControl.BindingContext Property

windowsforms-devexpress-dot-xtragrid-dot-gridcontrol-a8a239bf.md

latest3.0 KB
Original Source

GridControl.BindingContext Property

Gets or sets the BindingContext for the control.

Namespace : DevExpress.XtraGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public override BindingContext BindingContext { get; }
vb
Public Overrides ReadOnly Property BindingContext As BindingContext

Property Value

TypeDescription
BindingContext

A BindingContext for the control.

|

Remarks

This method overrides the BindingContext property to perform specific design-time customizations. See this property’s description in MSDN to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BindingContext property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

why-data-bound-controls-properties-work-incorrectly-until-a-control-become-visible-e2582/CS/WindowsApplication1/Form1.cs#L43

csharp
{
    _GridControl.BindingContext = new BindingContext();
}

why-data-bound-controls-properties-work-incorrectly-until-a-control-become-visible-e2582/VB/WindowsApplication1/Form1.vb#L39

vb
If showSolution Then
    _GridControl.BindingContext = New BindingContext()
End If

See Also

GridControl Class

GridControl Members

DevExpress.XtraGrid Namespace