コード例 #1
0
        public OpenFileDialogCellRenderer(GridControlBase grid, GridTextBoxCellModel cellModel) : base(grid, cellModel)
        {
            var btn = new GridCellComboBoxButton(this);

            AddButton(btn);

            _dialog = new OpenFileDialog();
        }
コード例 #2
0
        public FolderBrowserCellRenderer(GridControlBase grid, GridTextBoxCellModel cellModel)
            : base(grid, cellModel)
        {
            AddButton(new BrowseButton(this));

            //Initialize the folderBrowser1 object.
            this.folderBrowser1 = new System.Windows.Forms.OpenFileDialog();
        }
コード例 #3
0
ファイル: EllipsisCell.cs プロジェクト: tzvis1/winforms-demos
 /// <summary>
 /// Initializes a new <see cref="GridTextBoxCellRenderer"/> object for the given GridControlBase
 /// and <see cref="GridTextBoxCellModel"/>.
 /// </summary>
 /// <param name="grid">The <see cref="GridControlBase"/> that display this cell renderer.</param>
 /// <param name="cellModel">The <see cref="GridTextBoxCellModel"/> that holds data for this cell renderer that should
 /// be shared among views.</param>
 /// <remarks>References to GridControlBase,
 /// and GridTextBoxCellModel will be saved.</remarks>
 public EllipsisCellRenderer(GridControlBase grid, GridTextBoxCellModel cellModel)
     : base(grid, cellModel)
 {
     AddButton(new EllipsisCellButton(this));
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new <see cref="ButtonEditCellRenderer"/> object for the given GridControlBase
 /// and <see cref="ButtonEditCellModel"/>.
 /// </summary>
 /// <param name="grid">The <see cref="GridControlBase"/> that display this cell renderer.</param>
 /// <param name="cellModel">The <see cref="ButtonEditCellModel"/> that holds data for this cell renderer that should
 /// be shared among views.</param>
 /// <remarks>References to GridControlBase,
 /// and GridTextBoxCellModel will be saved.</remarks>
 public ButtonEditCellRenderer(GridControlBase grid, GridTextBoxCellModel cellModel)
     : base(grid, cellModel)
 {
     AddButton(new ButtonEditCellButton(this));
 }