private void copySelectedCellsToolStripMenuItem_Click(object sender, EventArgs e)
{
DevExpress.XtraGrid.Views.Base.GridCell[] cellcollection = gridView1.GetSelectedCells();
if (cellcollection.Length > 0)
{
CopySelectionToClipboard();
}
else
{
if (MessageBox.Show("No selection, copy the entire map?", "Question", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
CopyMapToClipboard();
}
}
}