Exemplo n.º 1
0
 protected override DevExpress.XtraGrid.Views.Base.ColumnView CreateGridViewCore() {
     var gridViewCreatingEventArgs = new CustomGridViewCreateEventArgs(Grid);
     OnCustomGridViewCreate(gridViewCreatingEventArgs);
     return gridViewCreatingEventArgs.Handled
         ? gridViewCreatingEventArgs.GridView
         : new XpandXafLayoutView(this) { OverrideViewDesignMode = ((IColumnViewEditor)this).OverrideViewDesignMode };
 }
Exemplo n.º 2
0
 protected override XafLayoutView CreateLayoutViewCore() {
     var gridViewCreatingEventArgs = new CustomGridViewCreateEventArgs(Grid);
     OnCustomGridViewCreate(gridViewCreatingEventArgs);
     return (XafLayoutView)(gridViewCreatingEventArgs.Handled
              ? gridViewCreatingEventArgs.GridView
              : new XpandXafLayoutView(this) { OverrideViewDesignMode = ((IColumnViewEditor)this).OverrideViewDesignMode });
 }
Exemplo n.º 3
0
 protected virtual void OnCustomGridViewCreate(CustomGridViewCreateEventArgs e) {
     EventHandler<CustomGridViewCreateEventArgs> handler = CustomGridViewCreate;
     if (handler != null) handler(this, e);
 }
Exemplo n.º 4
0
 protected override IColumnView CreateGridViewCore() {
     var gridViewCreatingEventArgs = new CustomGridViewCreateEventArgs(Grid);
     OnCustomGridViewCreate(gridViewCreatingEventArgs);
     return (IColumnView)(gridViewCreatingEventArgs.Handled ? gridViewCreatingEventArgs.GridView : new XpandXafGridView(this));
 }
Exemplo n.º 5
0
 protected override DevExpress.XtraGrid.Views.Base.ColumnView CreateGridViewCore() {
     var gridViewCreatingEventArgs = new CustomGridViewCreateEventArgs(Grid);
     OnCustomGridViewCreate(gridViewCreatingEventArgs);
     return gridViewCreatingEventArgs.Handled ? gridViewCreatingEventArgs.GridView : new XpandXafGridView();
 }