Private Sub chkBoxAll_Approve(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkButton.Click Dim ctr As New DataGridViewRow Try For Each ctr In dgvRequests.SelectedRows If chkBoxColumn.Selected = True Then Exit For ElseIf dgvRequests.CurrentRow.Cells("requestType").Value = "OOORequest" Then Call updateOutOfOffice(LeaveStatus.Approved) Else Call updateRequest(LeaveStatus.Approved) End If Next Catch ex As System.Exception MessageBox.Show(ex.Message) End Try End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)