I have a listBox and two buttons on the side, one to move up and the other down the selected item. However, the list is loaded by the DataSource
of a table of the bank, wanted to sort the position of the list items, because after ordering I will save those items in another table.
I saw that it has moveNext
, but it does not change the position, it just changes the selection.
private void btnSobe_Click(object sender, EventArgs e)
{
bdsCliente.MoveFirst();
}
private void btnDesce_Click(object sender, EventArgs e)
{
bdsCliente.MoveLast();
}