• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# CellValueChangedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中CellValueChangedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# CellValueChangedEventArgs类的具体用法?C# CellValueChangedEventArgs怎么用?C# CellValueChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CellValueChangedEventArgs类属于命名空间,在下文中一共展示了CellValueChangedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: gridView1_CellValueChanged

 private void gridView1_CellValueChanged(object sender, CellValueChangedEventArgs e)
 {
     gridView1.PostEditor();
     gridView1.UpdateCurrentRow();
     var dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);
     if (dr != null)
     {
         if (e.Column.Name == "SEL")
         {
             if (dr["SEL"].ToString() == bool.TrueString)
             {
                 gridView1.SetRowCellValue(gridView1.FocusedRowHandle, "AppliedAmt", decimal.Parse(dr["BALANCE"].ToString()));
             }
             else
             {
                 gridView1.SetRowCellValue(gridView1.FocusedRowHandle, "AppliedAmt", 0);
             }
         }
         //if (e.Column == colAppliedAmt)
         //{
         //    gridView1.SetRowCellValue(gridView1.FocusedRowHandle, colAppliedAmt, decimal.Parse(dr["BALANCE"].ToString()) - decimal.Parse(dr["AppliedAmt"].ToString()));
         //}
         if (string.IsNullOrEmpty(dr["AppliedAmt"].ToString()))
         {
             gridView1.SetRowCellValue(gridView1.FocusedRowHandle, "SEL", bool.FalseString);
         }
     }
 }
开发者ID:rehman922,项目名称:VIRETAIL,代码行数:28,代码来源:PaymentSelection.cs


示例2: OnCellValueChanged

 private void OnCellValueChanged(CellValueChangedEventArgs e)
 {
     if (lockEvents)
         return;
     lockEvents = true;
     SetSelectedCellsValues(e.Value);
     lockEvents = false;
 }
开发者ID:ctukc-nt,项目名称:UPPY_v2,代码行数:8,代码来源:MultiSelectionEditingHelper.cs


示例3: gvTasks_CellValueChanged

 private void gvTasks_CellValueChanged(object sender, CellValueChangedEventArgs e)
 {
     var curDoc = gvSuperTasks.GetRow(gvSuperTasks.FocusedRowHandle) as SuperTaskToDistrict;
     if (curDoc != null)
     {
         _controller.Save(curDoc);
     }
 }
开发者ID:ctukc-nt,项目名称:UPPY_v2,代码行数:8,代码来源:SuperTaskToDistrictListForm.cs


示例4: gridView1_CellValueChanged

 void gridView1_CellValueChanged(object sender, CellValueChangedEventArgs e)
 {
     PS_xl obj = gridView1.GetRow(e.RowHandle) as PS_xl;
     if (obj!=null)
     {
         Client.ClientHelper.PlatformSqlMap.Update<PS_xl>(obj);
     }
 }
开发者ID:s7loves,项目名称:mypowerscgl,代码行数:8,代码来源:UCPS_xl.cs


示例5: gvTasks_CellValueChanged

 private void gvTasks_CellValueChanged(object sender, CellValueChangedEventArgs e)
 {
     var curDoc = gvPackingLists.GetRow(gvPackingLists.FocusedRowHandle) as PackingList;
     if (curDoc != null)
     {
         _controller.Save(curDoc);
     }
 }
开发者ID:ctukc-nt,项目名称:UPPY_v2,代码行数:8,代码来源:PackingListsListForm.cs


示例6: gvTechRoutes_CellValueChanged

        private void gvTechRoutes_CellValueChanged(object sender, CellValueChangedEventArgs e)
        {
            var doc = (ProfileWorkHour) gvTechRoutes.GetFocusedRow();

            if (doc != null)
            {
                _controller.Save(doc);
            }
        }
开发者ID:ctukc-nt,项目名称:UPPY_v2,代码行数:9,代码来源:ProfileWorkHourListForm.cs


示例7: gridView1_CellValueChanged

 private void gridView1_CellValueChanged(object sender, CellValueChangedEventArgs e)
 {
     if (e.Column.Name == "colMateria")
     {
         sMateria = e.Value.ToString(); ;
         AddComboBoxColumn("Select Clave From Materias Where Nombre='" + e.Value.ToString() + "'", "Clave", "Clave");
     }
     if (e.Column.Name == "colClave")
     {
         sClave = e.Value.ToString(); ;
     }
     AddComboBoxColumn("Select SG From Grupos Where SG NOT IN(SELECT Grupo FROM MaestroMateria Where Materia='" + sMateria + "' AND Clave='" + sClave +"')", "Grupo", "SG");
 }
开发者ID:leonmalakian,项目名称:horariomaster,代码行数:13,代码来源:GridControlAsignaMateria.cs


示例8: View_CellValueChanging

        void View_CellValueChanging( object sender , CellValueChangedEventArgs e )
        {
            if ( Convert.ToDecimal( e.Value ) == 1 )
                return;

            if ( Convert.ToDecimal( e.Value ) < 1 )
            {
                this.gridView1.SetRowCellValue( -2147483647 , this.gridView1.Columns[ 1 ].FieldName , 1 );
                return;
            }

            decimal subTotal = Convert.ToDecimal( e.Value ) * costoUnitario;
            this.gridView1.SetRowCellValue( -2147483647 , this.gridView1.Columns[ 4 ].FieldName , subTotal );
        }
开发者ID:danilone123,项目名称:AVI-QR,代码行数:14,代码来源:PnlVentaProducto.cs


示例9: AllUsersCellValueChanging

 private void AllUsersCellValueChanging(object sender, CellValueChangedEventArgs e)
 {
     if (e.Column != colIsLocked)
     {
         return;
     }
     if ((bool)e.Value)
     {
         LockUser();
     }
     else
     {
         UnlockUser();
     }
 }
开发者ID:Demotron,项目名称:AdminTools,代码行数:15,代码来源:RolesChangeRibbonForm.cs


示例10: ValuesGridViewCellValueChanged

        private void ValuesGridViewCellValueChanged(object sender, CellValueChangedEventArgs e)
        {
            var dataRow = valuesGridView.GetRow(e.RowHandle) as GetIndicatorValuesForAllOrganization_Result;
            if (dataRow == null) return;

            bool isPlan = false;
            int cMonth;
            if (e.Column.FieldName.Substring(0, 2) == "vp")
            {
                isPlan = true;
                cMonth = int.Parse(e.Column.FieldName.Substring(2));
            }
            else cMonth = int.Parse(e.Column.FieldName.Substring(1));

            _dataProcessing.CnahgeIndicatorValue(dataRow.id_organization, _curIdIndicator, _curYear, cMonth, isPlan,
                                                 e.Value is double ? (double) e.Value : 0);
        }
开发者ID:Biskup,项目名称:GOATApplication,代码行数:17,代码来源:IndicatorValuesForOrganizationForm.cs


示例11: gridViewCRNNamingRule_CellValueChanged

        private void gridViewCRNNamingRule_CellValueChanged(object sender, CellValueChangedEventArgs e)
        {
            labelLineRuleSetup.Text = "";
            for (int i = 0; i < gridViewCRNNamingRule.RowCount; i++)
            {
                DataRow row = gridViewCRNNamingRule.GetDataRow(i);

                //labelLineRuleSetup.Text = labelLineRuleSetup.Text + row.ItemArray[0].ToString() + row.ItemArray[1].ToString();
                //+ row.ItemArray[2].ToString() + row.ItemArray[3].ToString() + row.ItemArray[4].ToString();
                if (i == gridViewCRNNamingRule.RowCount - 1)
                {
                    labelLineRuleSetup.Text = labelLineRuleSetup.Text + row.ItemArray[0].ToString();
                    gridViewCRNNamingRule.GetDataRow(gridViewCRNNamingRule.RowCount - 1)["Separator"] = "";
                }
                else
                {
                    labelLineRuleSetup.Text = labelLineRuleSetup.Text + row.ItemArray[0].ToString() + row.ItemArray[1].ToString();
                }
            }

            gridViewCRNNamingRule.BestFitColumns();
        }
开发者ID:sunnamkim,项目名称:doc,代码行数:22,代码来源:CRNNamingRule.cs


示例12: dgb_liquidacion_CellValueChanged

 private void dgb_liquidacion_CellValueChanged(object sender, CellValueChangedEventArgs e)
 {
     if (e.Column.FieldName == "importe1")
     {
         _AcmImportesMN(e.Column.FieldName);
         _CalcularTotales(e.Column.FieldName);
     }
     if (e.Column.FieldName == "importe2")
     {
         _AcmImportesMN(e.Column.FieldName);
         _CalcularTotales(e.Column.FieldName);
     }
 }
开发者ID:njmube,项目名称:ErpBapSoftNet_Producion,代码行数:13,代码来源:Frm_liquidacion_caja.cs


示例13: treeList1_CellValueChanged

 private void treeList1_CellValueChanged(object sender, CellValueChangedEventArgs e) {
     if (e.Column.FieldName == "层") {//修改图层名称
         
     }
 }
开发者ID:s7loves,项目名称:mypowerscgl,代码行数:5,代码来源:UCMapLayer.cs


示例14: treeList2_CellValueChanging

 private void treeList2_CellValueChanging(object sender, CellValueChangedEventArgs e)
 {
 }
开发者ID:EdgarEDT,项目名称:myitoppsp,代码行数:3,代码来源:FormForecastMaxOrBad_SH.cs


示例15: _View_CellValueChanged

 private void _View_CellValueChanged(object sender, CellValueChangedEventArgs e)
 {
     OnCellValueChanged(e);
 }
开发者ID:ctukc-nt,项目名称:UPPY_v2,代码行数:4,代码来源:MultiSelectionEditingHelper.cs


示例16: bandedGridView1_CellValueChanging

 private void bandedGridView1_CellValueChanging(object sender, CellValueChangedEventArgs e)
 {
     //Jisuan();
 }
开发者ID:algz,项目名称:ReactiveControlAnalysis,代码行数:4,代码来源:Form1.cs


示例17: treeBeforeSync_CellValueChanged

 private void treeBeforeSync_CellValueChanged(object sender, CellValueChangedEventArgs e)
 {
     treeBeforeSync.RefreshDataSource();
 }
开发者ID:poolsar,项目名称:LotCreator,代码行数:4,代码来源:BeforeSyncForm.cs


示例18: gridView2_CellValueChanged

 private void gridView2_CellValueChanged(object sender, CellValueChangedEventArgs e)
 {
     // SKU or BU unit value in confirm pick list was changed.
     DataRow dr = gridViewConfirmation.GetDataRow(e.RowHandle);
     if (e.Column == colBUPicked)
     {
         // convert the
         if (e.Value.ToString() != "" && Convert.ToInt32(e.Value) >= 0)
         {
             int skubu = Convert.ToInt32(dr["SKUBU"]);
             dr["SKUPICKED"] = Convert.ToDecimal(e.Value) / skubu;
             dr["BUPICKED"] = Convert.ToDecimal(dr["SKUPICKED"]) * skubu;
         }
     }
     else if (e.Column == colSKUPicked)
     {
         if (e.Value.ToString() != "" && Convert.ToInt32(e.Value) >= 0)
         {
             int skubu = Convert.ToInt32(dr["SKUBU"]);
             dr["BUPICKED"] = skubu * Convert.ToDecimal(e.Value);
         }
     }
     dr.EndEdit();
     // what the hell.
 }
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-warehouse,代码行数:25,代码来源:InvoiceForm.cs


示例19: viewLevers_CellValueChanging

        private void viewLevers_CellValueChanging(object sender, CellValueChangedEventArgs e)
        {
            _cellChanging = true;

            if (e.Column.Name == "colGIVEITBACK")
            {
                _giveItBackChanged = true;
            }
        }
开发者ID:jb3622,项目名称:Serrano,代码行数:9,代码来源:DetailedWorkbenchForm.cs


示例20: gviewRight_CellValueChanged

 private void gviewRight_CellValueChanged(object sender, CellValueChangedEventArgs e)
 {
     TryExecute(() => RefreshGrid(this.gviewLeft));
 }
开发者ID:Morphipapa,项目名称:ChanSort,代码行数:4,代码来源:MainForm.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# CellValueRecordInterface类代码示例发布时间:2022-05-24
下一篇:
C# CellType类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap