private void btnouvrir_Click(object sender, EventArgs e) { DataTable dataTable = new DataTable(); dataTable = ((DataTable)dtagrdSource.DataSource).Copy(); dataTable.Clear(); string sPath = ""; sPath = FileAction.FindFile(); if (sPath == "Veuillez sélectionner un fichier") { lblCheminSource.Text = "Veuillez sélectionner un fichier"; return; //Si égal à 0 alors ne fait pas la suite } lblCheminSource.Text = sPath; //Affichage du chemin dans le label GetValueToDGV(sPath); }