Hi Fredrik,
I access the datasource by it's name. The custom control within the repeat has it's own datasource which is set to EditDocument with a docid passed in by the repeat control.
Even without repeat control or custom control this is reproducable.
Bas