private void repositoryItemCheckEditIsDefault_CheckedChanged(object sender, EventArgs e) { DataRow dr = gridViewUserStoreMatrix.GetFocusedDataRow(); int ID = int.Parse(dr["ID"].ToString()); BLL.UserActivity userStore = new UserActivity(); userStore.LoadByPrimaryKey(ID); userStore.MakeDefault(); RefreshUserStoreGrid(userStore.UserID); }