本文整理汇总了C#中GridViewOperation类的典型用法代码示例。如果您正苦于以下问题:C# GridViewOperation类的具体用法?C# GridViewOperation怎么用?C# GridViewOperation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GridViewOperation类属于命名空间,在下文中一共展示了GridViewOperation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Ucm_sgzayc
public Ucm_sgzayc()
{
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<bdjl_sgzayc>(gridControl1, gridView1, barManager1, false);
}
示例2: UCGridView
public UCGridView() {
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<Empolyees>(gridControl1, gridView1, barManager1, new frmEmpolyeesEdit());
gridViewOperation.CreatingObjectEvent +=gridViewOperation_CreatingObjectEvent;
gridView1.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridView1_FocusedRowChanged);
}
示例3: UCJH_monthks
public UCJH_monthks(bool all) {
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<JH_monthks>(gridControl1, gridView1, barManager1);
gridViewOperation.CreatingObjectEvent += gridViewOperation_CreatingObjectEvent;
gridView1.FocusedRowChanged += gridView1_FocusedRowChanged;
//btEdit.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
gridViewOperation.BeforeDelete += new ObjectOperationEventHandler<JH_monthks>(gridViewOperation_BeforeDelete);
gridViewOperation.BeforeAdd += new ObjectOperationEventHandler<JH_monthks>(gridViewOperation_BeforeAdd);
barEditItem1.EditValueChanged += new EventHandler(barEditItem1_EditValueChanged);
gridView1.IndicatorWidth = 40;//设置显示行号的列宽
gridView1.CustomDrawRowIndicator += new DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventHandler(gridView1_CustomDrawRowIndicator);
treeList1.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(treeList1_FocusedNodeChanged);
treeList1.OptionsBehavior.Editable = false;
treeList1.OptionsSelection.EnableAppearanceFocusedCell = true;
treeList1.OptionsSelection.InvertSelection = true;
org = MainHelper.UserOrg;
//splitContainerControl1.PanelVisibility = SplitPanelVisibility.Panel2;
gridViewOperation.AfterAdd += new ObjectEventHandler<JH_monthks>(gridViewOperation_AfterAdd);
gridViewOperation.BeforeEdit += new ObjectOperationEventHandler<JH_monthks>(gridViewOperation_BeforeEdit);
//全局 = all;
selected = true;
gridControl1.DoubleClick += new EventHandler(gridControl1_DoubleClick);
bar1.Visible = false;
bar3.Visible = false;
splitContainerControl1.PanelVisibility = SplitPanelVisibility.Panel2;
btJZ.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
}
示例4: Ucm_ddczzl
public Ucm_ddczzl()
{
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<bdjl_ddzczl>(gridControl1, gridView1, barManager1, false);
InitLuke();
}
示例5: UCJH_weekman
public UCJH_weekman() {
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<JH_weekman>(gridControl1, gridView1, barManager1,new frmJH_weekmanEdit());
gridViewOperation.CreatingObjectEvent +=gridViewOperation_CreatingObjectEvent;
gridView1.FocusedRowChanged += gridView1_FocusedRowChanged;
//btEdit.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
gridViewOperation.BeforeDelete += new ObjectOperationEventHandler<JH_weekman>(gridViewOperation_BeforeDelete);
gridViewOperation.BeforeAdd += new ObjectOperationEventHandler<JH_weekman>(gridViewOperation_BeforeAdd);
gridView1.IndicatorWidth = 40;//设置显示行号的列宽
gridView1.CustomDrawRowIndicator += new DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventHandler(gridView1_CustomDrawRowIndicator);
//treeList1.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(treeList1_FocusedNodeChanged);
//treeList1.OptionsBehavior.Editable = false;
//treeList1.OptionsSelection.EnableAppearanceFocusedCell = true;
//treeList1.OptionsSelection.InvertSelection = true;
org = MainHelper.UserOrg;
//splitContainerControl1.PanelVisibility = SplitPanelVisibility.Panel2;
gridViewOperation.AfterAdd += new ObjectEventHandler<JH_weekman>(gridViewOperation_AfterAdd);
gridViewOperation.BeforeEdit += new ObjectOperationEventHandler<JH_weekman>(gridViewOperation_BeforeEdit);
gridViewOperation.AfterDelete += new ObjectEventHandler<JH_weekman>(gridViewOperation_AfterDelete);
createcontrol();
btExport.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
btExport1.Visibility = DevExpress.XtraBars.BarItemVisibility.Always;
//btExport1.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
bar3.Visible = false;
}
示例6: UCBB_Aqxpj
public UCBB_Aqxpj()
{
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<xxgx_aqxpj>(gridControl1, gridView1, barManager1, new frmAqxpj());
gridView1.FocusedRowChanged += gridView1_FocusedRowChanged;
}
示例7: Ucm_yxgzjlb
public Ucm_yxgzjlb()
{
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<bdjl_yxgzjlb>(gridControl1, gridView1, barManager1, false);
this.gridView1.FocusedRowChanged += new FocusedRowChangedEventHandler(gridView1_FocusedRowChanged);
}
示例8: UCSD_05
public UCSD_05()
{
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<sdjls_fsgyxjl>(gridControl1, gridView1, barManager1, new frmSD_fsyyxjl());
}
示例9: UCSD_yxfa
public UCSD_yxfa()
{
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<sdjls_fsgyxfa>(gridControl1, gridView1, barManager1, new frmyxfa());
gridView1.FocusedRowChanged += gridView1_FocusedRowChanged;
}
示例10: UCTop
public UCTop() {
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<mOrg>(gridControl1, gridView1, barManager1, new frmOrgEdit());
gridViewOperation.CreatingObjectEvent +=gridViewOperation_CreatingObjectEvent;
gridViewOperation.FocusedRowChanged +=gridViewOperation_FocusedRowChanged;
gridViewOperation.BeforeDelete += gridViewOperation_BeforeDelete;
}
示例11: UCBD_SBTZ_ZL
public UCBD_SBTZ_ZL() {
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<BD_SBTZ_ZL>(gridControl1, gridView1, barManager1);
gridView1.FocusedRowChanged +=gridView1_FocusedRowChanged;
gridView1.Click += new EventHandler(gridView1_Click);
gridView1.OptionsSelection.EnableAppearanceHideSelection = false;
}
示例12: UC2
public UC2() {
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<Empolyees>(gridControl1, gridView1, barManager1);
gridViewOperation.CreatingObjectEvent +=gridViewOperation_CreatingObjectEvent;
gridView1.FocusedRowChanged +=gridView1_FocusedRowChanged;
}
示例13: UCPS_sdtj
public UCPS_sdtj()
{
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<PS_tj>(gridControl1, gridView1, barManager1);
gridView1.FocusedRowChanged += gridView1_FocusedRowChanged;
}
示例14: UCBottom
public UCBottom() {
InitializeComponent();
initImageList();
initColumns();
gridViewOperation = new GridViewOperation<Empolyees>(gridControl1, gridView1, barManager1, new frmEmpolyeesEdit(),new UCBottomFind());
gridViewOperation.CreatingObjectEvent +=gridViewOperation_CreatingObjectEvent;
gridViewOperation.BeforeAdd += new ObjectOperationEventHandler<Empolyees>(gridViewOperation_BeforeAdd);
}
示例15: UCPJ_dykSelector
public UCPJ_dykSelector() {
InitializeComponent();
initImageList();
gridViewOperation = new GridViewOperation<PJ_dyk>(gridControl1, gridView1, barManager1,null,new UCPJ_dykFind());
gridViewOperation.BeforeAdd += new ObjectOperationEventHandler<PJ_dyk>(gridViewOperation_BeforeAdd);
gridViewOperation.CreatingObjectEvent +=gridViewOperation_CreatingObjectEvent;
gridViewOperation.BeforeDelete += new ObjectOperationEventHandler<PJ_dyk>(gridViewOperation_BeforeDelete);
gridView1.FocusedRowChanged +=gridView1_FocusedRowChanged;
}