You can't use the "WithEvents" and "Handles" keyword for controls that live inside a repeating control template (such as a datagrid, datalist or repeater) because there will be multiple instances of that control. Instead you need to use the repeating control's ItemCommand event handler and check the event arguments for the 'Command' property. For a button, you set the 'Command' argument to some string value to indicate the desired action ("moveup", "movedown"), then you can check for this value in the ItemCommand event handler.
-
Peter