Exemple #1
0
        private void btnRemoverValorMatriz2_Click(object sender, EventArgs e)
        {
            //Pega a linhas e coluna a ser removida
            int linhas  = Convert.ToInt32(Math.Round(nColunaMatriz2.Value, 0));
            int colunas = Convert.ToInt32(Math.Round(nLinhaMatriz2.Value, 0));

            //Remove o valor e re-exibe a matriz no DataGridView
            lblValorMatriz2.Text = "0";
            matriz2.ExcluirCelula(linhas, colunas);
        }