Make sure datagrid functions get an instance so the call_user_func can work in there