affiliate datagrid and general layout