private void btnDownload_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { FolderBrowserDialog fbd = new FolderBrowserDialog(); if (fbd.ShowDialog() == DialogResult.OK) { string filePath = grvData.GetFocusedRowCellValue(colPath).ToString(); TextUtils.FileCopyWithoutOverwriting(filePath, new FileInfo(filePath).Name, fbd.SelectedPath); } }