コード例 #1
0
        private void gridAccounts_CellValueChanged(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow row      = gridAccounts.SelectedRows[0];
            BLAdmin         bl       = new BLAdmin();
            Boolean         isActive = Convert.ToBoolean(row.Cells["IsActive"].Value);
            int             userId   = Convert.ToInt32(row.Cells["Userid"].Value);

            bl.UpdateAccount(userId, isActive);
        }