I am writing an app that will need to dynamically generate a label and two buttons for every rows it pulls out of a database.

so if there are 3 rows i need to generate

label button button
label button button
label button button

i've never done this before and i don't know a) how to dynamically generate the controls, and b) how to hook up events.

can someone tell me how, or point me in the direction of a tutorial?