當前位置: 首頁>>代碼示例>>C#>>正文


C# CellValueChangedEventArgs類代碼示例

本文整理匯總了C#中CellValueChangedEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# CellValueChangedEventArgs類的具體用法?C# CellValueChangedEventArgs怎麽用?C# CellValueChangedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CellValueChangedEventArgs類屬於命名空間,在下文中一共展示了CellValueChangedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的CellValueChangedEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。