Click or drag to resize
KaxListBoxReorder Method (Int32, Int32)
Moves the item at old index to new index by calculating the offset. Fires the Reordering and Reordered 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 Reorder(
	int oldIndex,
	int newIndex
)

Parameters

oldIndex
Type: SystemInt32
The old (current) index of the item.
newIndex
Type: SystemInt32
The new index of the item.
Remarks
The Reorder method updates the underlying datasource if the AllowAutomaticUpdates is set to true.
Examples
//Reorder the first item to second place
KaxListBox1.Reorder(0, 1);
See Also