smartDBforms.NET API Reference

DataBindItem.CreateDbConnection Method 

Creates a database connection according to the settings of the referenced SmartDataSource. This function works only if the parent SmartDBView uses SmartDataSource as a data source. You must call Open before using the connection and Close at the end in order to free the connection resources.

[Visual Basic]
Public Function CreateDbConnection() As DbConnection
[C#]
public DbConnection CreateDbConnection();

Return Value

A newly created DbConnection or null(Nothing)

See Also

DataBindItem Class | Adillis.SmartDBForms Namespace