windowsforms-devexpress-dot-xtragrid-dot-gridcontrol-367fedfd.md
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
[Browsable(false)]
[DefaultValue(false)]
[DXCategory("Data")]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("You don't need ServerMode property anymore.")]
public bool ServerMode { get; set; }
<DefaultValue(False)>
<Browsable(False)>
<DXCategory("Data")>
<EditorBrowsable(EditorBrowsableState.Never)>
<Obsolete("You don't need ServerMode property anymore.")>
Public Property ServerMode As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if server mode is enabled; otherwise, false.
|
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
private void Form1_Load(object sender, EventArgs e) {
gridControl1.ServerMode = true;
winforms-grid-linq-to-sql-sever-mode/VB/LinqServerModeOnAdvWorks/Form1.vb#L16
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
gridControl1.ServerMode = True
Dim dc As AdvWorksDataContext = New AdvWorksDataContext()
See Also