set the data source from the block if one is provided