internal void RowSelector_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         m_contextSelector          = sender as Xceed.Grid.RowSelector;
         m_contextCell              = null;
         tsmShowCellContent.Visible = false;
         contextMenuStripForCell.Show(m_contextSelector.PointToScreen(new System.Drawing.Point(e.X, e.Y)));
     }
 }
 void tsmCopy_Click(object sender, System.EventArgs e)
 {
     if (m_contextCell != null)
     {
         MyGrid.CopySelectedCellsToClipboard(m_contextCell);
         m_contextCell = null;
     }
     else if (m_contextSelector != null)
     {
         MyGrid.CopySelectedRowsToClipboard(m_contextSelector.Row);
         m_contextSelector = null;
     }
 }
 internal void cell_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         m_contextSelector = null;
         m_contextCell     = sender as Xceed.Grid.DataCell;
         if (m_contextCell.CellViewerManager != null && m_contextCell.CellViewerManager is Feng.Grid.Viewers.MultiLineViewer)
         {
             tsmShowCellContent.Visible = true;
         }
         else
         {
             tsmShowCellContent.Visible = false;
         }
         contextMenuStripForCell.Show(m_contextCell.PointToScreen(new System.Drawing.Point(e.X, e.Y)));
     }
 }
 void tsmCopy_Click(object sender, System.EventArgs e)
 {
     if (m_contextCell != null)
     {
         MyGrid.CopySelectedCellsToClipboard(m_contextCell);
         m_contextCell = null;
     }
     else if (m_contextSelector != null)
     {
         MyGrid.CopySelectedRowsToClipboard(m_contextSelector.Row);
         m_contextSelector = null;
     }
 }
 internal void RowSelector_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         m_contextSelector = sender as Xceed.Grid.RowSelector;
         m_contextCell = null;
         tsmShowCellContent.Visible = false;
         contextMenuStripForCell.Show(m_contextSelector.PointToScreen(new System.Drawing.Point(e.X, e.Y)));
     }
 }
 internal void cell_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         m_contextSelector = null;
         m_contextCell = sender as Xceed.Grid.DataCell;
         if (m_contextCell.CellViewerManager != null && m_contextCell.CellViewerManager is Feng.Grid.Viewers.MultiLineViewer)
         {
             tsmShowCellContent.Visible = true;
         }
         else
         {
             tsmShowCellContent.Visible = false;
         }
         contextMenuStripForCell.Show(m_contextCell.PointToScreen(new System.Drawing.Point(e.X, e.Y)));
     }
 }