Skip to main content

ConnectionOptions.CloseConnection Property

Specifies whether or not a data connection should be closed after executing a query.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v24.1.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

[TypeConverter(typeof(BooleanTypeConverter))]
public bool CloseConnection { get; set; }

Property Value

Type Description
Boolean

true to close the connection immediately after executing a query; false to never close the connection.

Property Paths

You can access this nested property as listed below:

Object Type Path to CloseConnection
SqlDataSource
.ConnectionOptions .CloseConnection

Remarks

The CloseConnection property enables you to pass a query result set to subsequent queries.

See Also