Click or drag to resize
KaxListBoxTransfer Method (KaxListBoxItem, KaxListBox, KaxListBox)
Transfers the specified item from the source list box to the destination listbox. Fires the Transferring and Transferred events.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public void Transfer(
	KaxListBoxItem item,
	KaxListBox sourceListBox,
	KaxListBox destinationListBox
)

Parameters

item
Type: Kettic.AspNet.ControlsKaxListBoxItem
The item to transfer.
sourceListBox
Type: Kettic.AspNet.ControlsKaxListBox
The source list box.
destinationListBox
Type: Kettic.AspNet.ControlsKaxListBox
The destination list box.
Remarks
Always call the Transfer method of the KaxListBox whose TransferToID property is set! The Transfer method updates the underlying datasource if the AllowAutomaticUpdates is set to true.
Examples
The following example demonstrates how to use the Transfer method
KaxListBox1.TransferToID = "KaxListBox2";
//Transfers the first item of KaxListBox1 to KaxListBox2
KaxListBox1.Transfer(KaxListBox1.Items[0], KaxListBox1, KaxListBox2); 
//Transfers the first item of KaxListBox2 to KaxListBox1. Notice that we do not use KaxListBox2.Transfer
KaxListBox1.Transfer(KaxListBox2.Items[0], KaxListBox2, KaxListBox1);
See Also