private void dgvStkInLine_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1 && e.ColumnIndex > -1) { if (dgvStkInLine.Columns[e.ColumnIndex].Name == "colAddGive") { STK_InLineResult rst = bsStkInLine.Current as STK_InLineResult; STK_InLineResult newLine = EntityHandler.Clone(rst); newLine.StkInGuid = null; newLine.StkInLineGuid = null; newLine.IsCut = true; newLine.IsPCut = true; newLine.IsRaiseTaxes = false; newLine.IsGive = true; newLine.IsDeleted = false; newLine.Qty = null; newLine.UnitPrice = null; newLine.CostPrice = null; newLine.CostPrice = null; newLine.Amount = null; bsStkInLine.Insert(e.RowIndex + 1, newLine); } } }