If you want to prevent the line from being dragged at all, use the following method instead:
void dataGridView1_DragEnter(object sender, DragEventArgs e)
{
DataGridViewRow row = (DataGridViewRow)e.Data.GetData(typeof(DataGridViewRow));
if (row.Cells[0].Value.ToString() == "no_drag")
e.Effect = DragDropEffects.None;
else
e.Effect = DragDropEffects.Move;
}
, , - :
DoDragDrop(dataGridView1.SelectedRows[0], DragDropEffects.Move);
, , .