当前位置: 首页>>代码示例>>C#>>正文


C# DevExpress.GetRow方法代码示例

本文整理汇总了C#中DevExpress.GetRow方法的典型用法代码示例。如果您正苦于以下问题:C# DevExpress.GetRow方法的具体用法?C# DevExpress.GetRow怎么用?C# DevExpress.GetRow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DevExpress的用法示例。


在下文中一共展示了DevExpress.GetRow方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RemoverRenglonDelGrid

        private void RemoverRenglonDelGrid(DevExpress.XtraGrid.GridControl Grid, DevExpress.XtraGrid.Views.Grid.GridView GV)
        {
            var lstDoctosPV = (List<DoctosPV>)(Grid.DataSource);

            if (lstDoctosPV.Count > 0)
            {
                int i = GV.GetSelectedRows()[0];
                DoctosPV retiro = (DoctosPV)GV.GetRow(i);

                lstDoctosPV.Remove(retiro);

                Grid.DataSource = lstDoctosPV;
                GV.RefreshData();
            }
        }
开发者ID:desarrollocorrales,项目名称:CorteDeSucursales,代码行数:15,代码来源:FrmCaptura.cs

示例2: ModifyGridViewInstance

        public void ModifyGridViewInstance(DevExpress.XtraGrid.Views.Grid.GridView masterGridView, int rowHandle, int relationIndex, IModelListView masterModelListView, List<MasterDetailRuleInfo> masterDetailRules) {
            var modelDetailRelationCalculator = new ModelDetailRelationCalculator(masterModelListView, masterGridView, masterDetailRules);
            bool isRelationSet = modelDetailRelationCalculator.IsRelationSet(rowHandle, relationIndex);
            if (isRelationSet) {
                IModelListView childModelListView = modelDetailRelationCalculator.GetChildModelListView(rowHandle, relationIndex);
                Window window = _xafApplication.CreateWindow(TemplateContext.View, null, true, false);
                ListView listView = GetListView(modelDetailRelationCalculator, rowHandle, relationIndex, childModelListView);
                var detailXafGridView = (DevExpress.XtraGrid.Views.Grid.GridView)masterGridView.GetDetailView(rowHandle, relationIndex);
                ((IColumnViewEditor)listView.Editor).CustomGridViewCreate +=
                    (o, eventArgs) => {
                        ((WinColumnsListEditor)o).DataSource = detailXafGridView.DataSource;
                        eventArgs.Handled = true;
                        eventArgs.GridView = detailXafGridView;
                        eventArgs.GridControl.DataSource = detailXafGridView.DataSource;
                    };

                EventHandler[] listViewOnControlsCreated = { null };
                listViewOnControlsCreated[0] = (sender, args) => {
                    ((IMasterDetailColumnView)detailXafGridView).MasterFrame = ((IMasterDetailColumnView)masterGridView).MasterFrame ?? _masterFrame;
                    ((IMasterDetailColumnView)detailXafGridView).Window = window;
                    detailXafGridView.GridControl = masterGridView.GridControl;
                    listView.ControlsCreated -= listViewOnControlsCreated[0];
                };
                listView.ControlsCreated += listViewOnControlsCreated[0];
                ((PropertyCollectionSource)listView.CollectionSource).MasterObject = masterGridView.GetRow(rowHandle);
                window.SetView(listView);
            }
        }
开发者ID:derjabkin,项目名称:eXpand,代码行数:28,代码来源:MasterDetailBuilders.cs

示例3: GetFocusedRowObject

 object GetFocusedRowObject(DevExpress.ExpressApp.Win.Editors.XafGridView view) {
     if (view is XpandXafGridView && ((XpandXafGridView)view).Window == null)
         return XtraGridUtils.GetFocusedRowObject(_collectionSourceBase, view);
     int rowHandle = view.FocusedRowHandle;
     if (!((!view.IsDataRow(rowHandle) && !view.IsNewItemRow(rowHandle))))
         return view.GetRow(rowHandle);
     return XtraGridUtils.GetFocusedRowObject(_collectionSourceBase, view);
 }
开发者ID:krazana,项目名称:eXpand,代码行数:8,代码来源:XpandGridListEditor.cs

示例4: getRow

 private clsTipoCombustible getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
 {
     try
     {
         return (clsTipoCombustible)view.GetRow(view.FocusedRowHandle);
     }
     catch (Exception)
     {
         return null;
     }
 }
开发者ID:Kendry06,项目名称:BaseSistemasIntegrados,代码行数:11,代码来源:frmConsultaTipoCombustible.cs

示例5: getRow

 private clsIngresoEgresoCAB getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
 {
     try
     {
         return (clsIngresoEgresoCAB )view.GetRow(view.FocusedRowHandle);
     }
     catch (Exception)
     {
         return null;
     }
 }
开发者ID:Kendry06,项目名称:BaseSistemasIntegrados,代码行数:11,代码来源:frmConsultaIngresoEgresoCAB.cs

示例6: getRow

 private clsOrdenCompraDET getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
 {
     try
     {
         return (clsOrdenCompraDET)view.GetRow(view.FocusedRowHandle);
     }
     catch (Exception)
     {
         return null;
     }
 }
开发者ID:Kendry06,项目名称:BaseSistemasIntegrados,代码行数:11,代码来源:frmConsultaOrdenCompra.cs

示例7: getRow

        private clsActivoFijo getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
        {
            try
            {
                return (clsActivoFijo)view.GetRow(view.FocusedRowHandle);
            }
            catch (Exception)
            {

                return null;
            }
        }
开发者ID:Kendry06,项目名称:BaseSistemasIntegrados,代码行数:12,代码来源:VtnConsultaActivoFijo.cs

示例8: getRow

        private clsRevalorizacion getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
        {
            try
            {
                return (clsRevalorizacion)view.GetRow(view.FocusedRowHandle);
            }
            catch (Exception)
            {

                return null;
            }
        }
开发者ID:Kendry06,项目名称:BaseSistemasIntegrados,代码行数:12,代码来源:VtnConsultaRevalor.cs

示例9: addChildRow

 public static void addChildRow(DevExpress.XtraGrid.Views.Grid.GridView view, int indexRow)
 {
     int newRowHandle = view.FocusedRowHandle;
     object newRow = view.GetRow(newRowHandle);
     if (view.GroupedColumns.Count > 0)
     {
         for (int i = 0; i < view.GroupedColumns.Count; i++)
         {
             view.SetRowCellValue(newRowHandle, view.GroupedColumns[i], indexRow);
         }
     }
 }
开发者ID:khanhdtn,项目名称:my-office-manager,代码行数:12,代码来源:DMTaiLieu.cs

示例10: GetSelectedRow

        //
        private clsEmpresaServicio GetSelectedRow(DevExpress.XtraGrid.Views.Grid.GridView view)
        {
            try
            {
            return (clsEmpresaServicio )view.GetRow(view.FocusedRowHandle);
            }
            catch (Exception ex)
            {

            return null;
            }
        }
开发者ID:Kendry06,项目名称:BaseSistemasIntegrados,代码行数:13,代码来源:frmEmpresaServicio.cs

示例11: RemoverRenglonDelGrid

        private void RemoverRenglonDelGrid(DevExpress.XtraGrid.GridControl Grid, DevExpress.XtraGrid.Views.Grid.GridView GV)
        {
            var lstRegistros = (List<ChequeTransferencia>)(Grid.DataSource);

            if (lstRegistros.Count > 0)
            {
                int i = GV.GetSelectedRows()[0];
                ChequeTransferencia registro = (ChequeTransferencia)GV.GetRow(i);

                lstRegistros.Remove(registro);

                Grid.DataSource = lstRegistros;
                GV.RefreshData();
            }
        }
开发者ID:desarrollocorrales,项目名称:CorteDeSucursales,代码行数:15,代码来源:FrmChequesTransferencias.cs

示例12: getRow

 private clsUnidadMedida getRow(DevExpress.XtraGrid.Views.Grid.GridView view)
 {
     try
     {
         return (clsUnidadMedida)view.GetRow(view.FocusedRowHandle);
     }
     catch (Exception)
     {
         return null;
     }
 }
开发者ID:Kendry06,项目名称:BaseSistemasIntegrados,代码行数:11,代码来源:frmConsultaUnidadMedida.cs

示例13: GetSelectedRowCmbCuenta

 private clsCuenta GetSelectedRowCmbCuenta(DevExpress.XtraGrid.Views.Grid.GridView view)
 {
     try
     {
         return (clsCuenta)view.GetRow(view.FocusedRowHandle);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Error: "+ex);
         return null;
     }
 }
开发者ID:Kendry06,项目名称:BaseSistemasIntegrados,代码行数:12,代码来源:frmPlanCuenta.cs

示例14: returnRowUpdate

 public static void returnRowUpdate(DevExpress.XtraGrid.Views.Grid.GridView view, object row)
 {
     for (int n = 0; n < view.DataRowCount; n++)
     {
         if (view.GetRow(n).Equals(row))
         {
             view.FocusedRowHandle = n;
             break;
         }
     }
 }
开发者ID:khanhdtn,项目名称:my-office-manager,代码行数:11,代码来源:DMTaiLieu.cs


注:本文中的DevExpress.GetRow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。