XenAdmin.Wizards.NewSRWizard_Pages.Frontends.LVMoHBA.buttonSelectAll_Click C# (CSharp) Method

buttonSelectAll_Click() private method

private buttonSelectAll_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void buttonSelectAll_Click(object sender, EventArgs e)
        {
            foreach (var row in dataGridView.Rows)
            {
                var deviceRow = row as FCDeviceRow;
                if (deviceRow != null && deviceRow.Cells.Count > 0)
                    deviceRow.Cells[colCheck.Index].Value = true;
            }

            UpdateSelectedDevices();
            OnPageUpdated();
        }