Question: I have a datagridview with 3 columns: invoice id, price and a checkbox.

If checkbox is clicked price becomes 0 for that row. Now that is happening.

But when I uncheck the checkbox price should be as it was. But it is remaining zero. Below is my code for cellcontent click. How can i get previous price if checkbox in unchecked?

```
private void grvItems_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
    var senderGrid = (DataGridView)sender;
    DataGridViewRow row = this.grvItems.CurrentRow;
    if (e.RowIndex >= 0)
    {
        if (senderGrid.Columns[e.ColumnIndex] is DataGridViewCheckBoxColumn &&
             e.RowIndex >= 0)
        {
            if (e.ColumnIndex == grvItems.Columns["UnderWarranty"].Index)
            {
                string returnAmt = lblReturnAmountVal.Text;
                bool isCheked = (bool)grvItems.Rows[e.RowIndex].Cells["UnderWarranty"].EditedFormattedValue;

                if (isCheked)
                {
                    grvItems.Rows[e.RowIndex].Cells["PRICE"].Value = "0.00";
                    lblReturnAmountVal.Text = "0.00";
                }
                else
                { 

                }
                grvItems.EndEdit();
            }
        }
    }
}

```

Answer: 
1.) Application Run As Administrator
2.) When you Close Application at that time use Application.exit at end of code
When a report ( printing ) function is run, a dll ( it is a working temp file generated by application to set a parameter etc.. ) is created in a temp folder for a millisecond and deleted.
At that time if the new antivirus program is catch the file, it also checks and release. and it is locked while it is being checked and your application dump ( the error message ) at that time.

So remove your anti virus you will see problem will be solved. Stopping anti virus may not enough. AV services continue to check every file and blockes.