upgrade datagrid functions