update records in datagrid