private void BindingSource(SupplierAccountRecordPage listPage) { if (listPage != null && listPage.SupplierAccountRecords != null && listPage.SupplierAccountRecords.Count > 0) { foreach (var item in listPage.SupplierAccountRecords) { item.SupplierName = GlobalCache.GetSupplierName(item.SupplierID); item.AdminUserName = GlobalCache.GetUserName(item.AdminUserID); item.AccountTypeName = GlobalUtil.GetAccountTypeName(item.AccountType); } } this.dataGridViewPagingSumCtrl.BindingDataSource(listPage.SupplierAccountRecords, null, listPage?.TotalEntityCount, listPage?.Sum); }