Example #1
0
 //双击弹出编辑
 private void superGridControlClient_CellDoubleClick(object sender,
                                                     GridCellDoubleClickEventArgs e)
 {
     if (e.MouseEventArgs.Button == MouseButtons.Left)
     {
         ToolStripMenuItemEdit.PerformClick();
     }
 }
Example #2
0
 //双击显示详细的商品界面
 private void superGridControl1_CellDoubleClick(object sender,
                                                GridCellDoubleClickEventArgs e)
 {
     if (e.GridCell.GridColumn.Name == "gridColumnName" ||
         e.GridCell.GridColumn.Name == "gridColumnModel")
     {
         return;
     }
 }
Example #3
0
 //双击显示详细的商品界面
 private void superGridControl1_CellDoubleClick(object sender,
                                                GridCellDoubleClickEventArgs e)
 {
     if (e.GridCell.GridColumn.Name == "gridColumnName" ||
         e.GridCell.GridColumn.Name == "gridColumnModel")
     {
         MessageBox.Show("Test");
     }
 }
        /// <summary>
        /// Launches the associated program for the given file
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SuperGridControl2CellDoubleClick(
            object sender, GridCellDoubleClickEventArgs e)
        {
            string s = e.GridCell.GridRow.Tag as string;

            if (s != null)
            {
                Process.Start(new ProcessStartInfo(s));
            }
        }
Example #5
0
 private void GridMaster_CellDoubleClick(object sender, GridCellDoubleClickEventArgs e)
 {
     try
     {
         MasterGridCellDoubleClick?.Invoke(sender, e);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
        /// <summary>
        /// Handles double clicks in grid cells
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void SuperGridControl1CellDoubleClick(object sender, GridCellDoubleClickEventArgs e)
        {
            // If the user double clicked in a MicroChart cell in
            // the second column, then change the editor on the fly
            // so that they can textually edit the chart points.
            //
            // When the edit is over, the edit type for the column will
            // be set back to normal in the MyGridTextBoxXEditControl EndEdit
            // routine (we could have accomplished this same thing by hooking
            // onto the SuperGridControl.EndEdit event as well).

            if (e.GridCell.ColumnIndex == 1)
            {
                e.GridCell.EditorType = typeof(MyGridTextBoxXEditControl);
            }
        }
Example #7
0
 private void superGridControl1_CellDoubleClick(object sender, GridCellDoubleClickEventArgs e)
 {
     Return();
 }
Example #8
0
 private void supergrid_CellDoubleClick(object sender, GridCellDoubleClickEventArgs e)
 {
     UpdateBindings(context);
     superTabControl1.SelectedTab = stbidetail;
 }
 private void superGridControl1_CellDoubleClick(object sender, GridCellDoubleClickEventArgs e)
 {
     编辑ToolStripMenuItem.PerformClick();
 }
Example #10
0
 private void grid_CellDoubleClick(object sender, GridCellDoubleClickEventArgs e)
 {
 }