Controls inside Template tags cannot be directly accessed in code behind. Instead you should use FindControl
method:
var dataList1 = (DataList)FormView1.FindControl("DataList1");
Note that this might not work in early stages of page life cycle (not until Page_Load I believe).