Back to Devexpress

GridControl.ServerMode Property

windowsforms-devexpress-dot-xtragrid-dot-gridcontrol-367fedfd.md

latest3.4 KB
Original Source

GridControl.ServerMode Property

OBSOLETE

You don't need ServerMode property anymore.

Gets whether server mode is enabled.

Namespace : DevExpress.XtraGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
[DefaultValue(false)]
[DXCategory("Data")]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("You don't need ServerMode property anymore.")]
public bool ServerMode { get; set; }
vb
<DefaultValue(False)>
<Browsable(False)>
<DXCategory("Data")>
<EditorBrowsable(EditorBrowsableState.Never)>
<Obsolete("You don't need ServerMode property anymore.")>
Public Property ServerMode As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if server mode is enabled; otherwise, false.

|

Remarks

This property is no longer needed. The grid control will automatically choose the required data binding mode (the regular data binding mode, sync or async server mode) according to the type of the bound data source. See Large Data Sources: Server and Instant Feedback Modes to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ServerMode 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.

winforms-grid-linq-to-sql-sever-mode/CS/LinqServerModeOnAdvWorks/Form1.cs#L18

csharp
private void Form1_Load(object sender, EventArgs e) {
    gridControl1.ServerMode = true;

winforms-grid-linq-to-sql-sever-mode/VB/LinqServerModeOnAdvWorks/Form1.vb#L16

vb
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
    gridControl1.ServerMode = True
    Dim dc As AdvWorksDataContext = New AdvWorksDataContext()

See Also

Large Data Sources: Server and Instant Feedback Modes

GridControl Class

GridControl Members

DevExpress.XtraGrid Namespace