private void GetEmployeeProfiles() { string sErrorCode; string sErrorText; try { if (SecurityProfileProcedures.ExecuteGetEmployeeProfileHeader(_UserVO.UserName , null , _StoreNumber , out _ShopVisitingEmployees , out sErrorCode , out sErrorText)) { if (sErrorCode == "0") { _ShopVisitingEmployees.DefaultView.Sort = "employeenumber"; DataColumn[] key = new DataColumn[1]; key[0] = _ShopVisitingEmployees.Columns["userid"]; _ShopVisitingEmployees.PrimaryKey = key; PopulateShopEmployees(); PopulateVisitingEmployees(); } else { errorLabel.Text = sErrorText; } } else { errorLabel.Text = sErrorText; } } catch (Exception ex) { FileLogger.Instance.logMessage(LogLevel.ERROR, this, "Error getting employee profile header" + ex.Message); BasicExceptionHandler.Instance.AddException("Error getting employee profile header", new ApplicationException()); } }