1-) C# - datagrid görünümünde seçili satırı silmeye ilişkin onay mesaj kutusunu göster
DialogResult dr = Messagebox.Show("Are you sure to delete row?","Confirmation",MessageboxButtons.YesNo);
if (dr == DialogResult.Yes)
{
//delete row from database or datagridview...
}
else if (dialogResult == DialogResult.No)
//Nothing to do
2.çözüm
if (DialogResult.Yes == MessageBox.Show("Do You Want Delete ?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning))
// do what u want