コード例 #1
0
 private void gridViewMain_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
 {
     MB.WinClientDefault.Extender.IViewFormStyleProvider provider = _ClientRuleObject as MB.WinClientDefault.Extender.IViewFormStyleProvider;
     if (provider != null)
     {
         provider.RowCellStyle(this, gridViewMain, e);
     }
     else
     {
         MB.WinClientDefault.Extender.ViewGridExtenderHelper.CustomDrawRowStyleByDocState(this, gridViewMain, e);
     }
 }
コード例 #2
0
        void gridViewMain_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
        {
            if (e.RowHandle < 0)
            {
                return;
            }
            MB.WinClientDefault.Extender.IViewFormStyleProvider provider = _AsynQueryRule as MB.WinClientDefault.Extender.IViewFormStyleProvider;
            if (provider != null)
            {
                provider.RowCellStyle(this, grdCtlMain.DefaultView as DevExpress.XtraGrid.Views.Grid.GridView, e);
            }

            var gridView = grdCtlMain.DefaultView as DevExpress.XtraGrid.Views.Grid.GridView;

            if ((e.RowHandle % 2) != 0 && gridView.FocusedRowHandle != e.RowHandle)
            {
                e.Appearance.BackColor = MB.XWinLib.XtraGrid.GridControlEx.ODD_ROW_BACK_COLOR;
            }
        }