combit List & Label 24 - .NET Online Web Help
SetDataBinding(Object) Method
Example 


combit.ListLabel24 Namespace > ListLabel Class > SetDataBinding Method : SetDataBinding(Object) Method

DataSource to bind to.

Sets the data source to use for the Print Method and Design Method. You can bind to any data for which a provider is available. See the combit.ListLabel24.DataProviders Namespace for an overview of available data providers. You may also write your own data provider and in this way bind to custom sources not covered yet. The most frequently used objects for data binding are

Syntax
'Declaration
 
Public Overloads Overridable Sub SetDataBinding( _
   ByVal dataSource As Object _
) 
public virtual void SetDataBinding( 
   object dataSource
)
public:
virtual void SetDataBinding( 
   Object^ dataSource
) 

Parameters

dataSource

DataSource to bind to.

Remarks
Please note that after calling the central data binding capabilities like the Design Method, the Print Method or the Export Method the data source that's assigned to the used List & Label object has to be reassigned/recreated before reusing the object.
Example
SqlConnection conn = new SqlConnection(Properties.Settings.Default.ConnectionString);  
LL.SetDataBinding(conn); 
LL.Print();
Requirements

Platforms: Windows Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

ListLabel Class
ListLabel Members
Overload List