Example #1
0
        private void dgv_produtos_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string columnName = dgv_produtos.Columns[e.ColumnIndex].Name;

            if (columnName == "PC_QTDE_FORMATADO" || columnName == "PC_PRECO_VENDA_FORMATADO")
            {
                FormataValorGridView formatt = new FormataValorGridView(dgv_produtos, columnName, this.Name, e.RowIndex);
                formatt.ShowDialog();
            }
        }
Example #2
0
        private void dgv_produtos_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView cell = (DataGridView)sender;

            if (e.RowIndex > -1 && cell.Columns[e.ColumnIndex].Name == "Qtd")
            {
                FormataValorGridView format = new FormataValorGridView(dgv_produtos, "Qtd", this.Name, e.RowIndex);
                format.ShowDialog();
            }
        }