Need help with repeater, array & dataset.

This code is too long (for reviewing).
Try to create a shorter version and use it as an example.