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


C# Forms.DataGridViewRowsRemovedEventArgs类代码示例

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


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

示例1: dgvProdutosAdicionados_RowsRemoved

 private void dgvProdutosAdicionados_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         calculaPrecos();
     }
 }
开发者ID:jfpsb,项目名称:VandaConfeccoes,代码行数:7,代码来源:TelaVenda.cs

示例2: dgPelanggan_RowsRemoved

 private void dgPelanggan_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
 {
     if (pelanggan.Rows.Count < 1)
     {
         btnHapus.Enabled = false;
     }
 }
开发者ID:bustan,项目名称:DVDRental,代码行数:7,代码来源:frmMasterPelanggan.cs

示例3: dgvSP_RowsRemoved

 private void dgvSP_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
 {
     foreach (DataGridViewRow rw in dgvSP.Rows)
     {
         rw.Cells[1].Value = String.Format("{0}", rw.Index + 1);
     }
 }
开发者ID:CodePh4nt0m,项目名称:DevKit,代码行数:7,代码来源:frmImport.cs

示例4: dtgvExe_RowsRemoved

 private void dtgvExe_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
 {
     if (dtgvExe.Rows.Count == 0)
     {
         btnExcluir.Enabled = false;
         btnAlterar.Enabled = false;
     }
 }
开发者ID:4nub1s,项目名称:infoGym,代码行数:8,代码来源:frmExeGerenciar.cs

示例5: OnRowsRemoved

        protected override void OnRowsRemoved(DataGridViewRowsRemovedEventArgs e)
        {
            if (mTasks != null)
            {
                for (int d = 0; d < e.RowCount; ++d)
                    mTasks.RemoveAt(e.RowIndex + d);
            }

            base.OnRowsRemoved(e);
        }
开发者ID:weimingtom,项目名称:isilme,代码行数:10,代码来源:TaskTable.cs

示例6: gridview_RowRemoveEvent

        private void gridview_RowRemoveEvent(object sender, DataGridViewRowsRemovedEventArgs e)
        {
            //if (dataGridView1.Rows.Count != 1)
            //{
            //contacts.Clear();
            if (chk2 == true)
            {
                if (selectedIndexes != null)
                {

                    foreach (int iteam in selectedIndexes)
                    {
                        contacts.Rows[iteam].Delete();
                    }

                }
            }

            chk2 = true;
        }
开发者ID:redtchits,项目名称:SMS_Sender,代码行数:20,代码来源:Form1.cs

示例7: dataGridView_RowsRemoved

 private void dataGridView_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
 {
     CalculateLastColumnWidth(sender);
 }
开发者ID:strillo,项目名称:ServiceBusExplorer,代码行数:4,代码来源:PartitionListenerControl.cs

示例8: dgv_RowsRemoved

        private void dgv_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
        {
            if (dgv.Rows.Count > 0)
            {
                bool validated = true;
                _CheckSameList.Clear();

                // 檢查資料
                foreach (DataGridViewRow row in dgv.Rows)
                {
                    // 清空錯誤訊息
                    row.Cells[FieldName.Index].ErrorText = "";
                    row.Cells[Value.Index].ErrorText = "";

                    string FName = string.Empty;
                    if (row.IsNewRow)
                        continue;

                    if (row.Cells[FieldName.Index].Value != null)
                        FName = row.Cells[FieldName.Index].Value.ToString();

                    if (_CheckSameList.Contains(FName))
                    {
                        row.Cells[FieldName.Index].ErrorText = "欄位名稱重複";
                        validated = false;
                    }

                    _CheckSameList.Add(FName);
                }

                foreach (DataGridViewRow row in dgv.Rows)
                    foreach (DataGridViewCell cell in row.Cells)
                        if (cell.ErrorText != string.Empty)
                        {
                            validated = false;
                            break;
                        }
                this.ContentValidated = validated;
                if (validated)
                {
                    this.SaveButtonVisible = true;
                    this.CancelButtonVisible = true;
                }
                else
                {
                    this.SaveButtonVisible = true;
                    this.CancelButtonVisible = true;
                }
            }
        }
开发者ID:ChunTaiChen,项目名称:UserDefineData,代码行数:50,代码来源:UserDefineDataItem.cs

示例9: dataGridViewDetalleDeIngreso_RowsRemoved

 private void dataGridViewDetalleDeIngreso_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
 {
     textBoxMonto.Text = calculateMonto();
 }
开发者ID:christiancata,项目名称:SuperMercadoMio,代码行数:4,代码来源:Modificar.cs

示例10: authorizationRulesDataGridView_RowsRemoved

 private void authorizationRulesDataGridView_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
 {
     authorizationRulesDataGridView_Resize(sender, null);
 }
开发者ID:abombss,项目名称:ServiceBusExplorer,代码行数:4,代码来源:HandleTopicControl.cs

示例11: OnRowsPostRemovedInternal

		internal void OnRowsPostRemovedInternal (DataGridViewRowsRemovedEventArgs e)
		{
			Invalidate ();
			OnRowsRemoved (e);
		}
开发者ID:vnan122,项目名称:mono,代码行数:5,代码来源:DataGridView.cs

示例12: dataGridView1_RowsRemoved

        private void dataGridView1_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
        {

            if (m_editor == null)
                return;

            if (e.RowIndex == 0)
                return;

            if (m_enumRow == null)
                return;

            List<tag> currentTagList = new List<tag>();

            // loop through all the tags listed in the grid
            for (int rowIndex = 0; rowIndex < dataGridView1.RowCount; rowIndex++)
            {
                string tagKeyValue = dataGridView1[0, rowIndex].Value as string;
                string tagValueValue = dataGridView1[1, rowIndex].Value as string;

                if ((String.IsNullOrEmpty(tagKeyValue) == false) || (String.IsNullOrEmpty(tagValueValue) == false))
                {
                    tag newTag = new tag();
                    newTag.k = tagKeyValue;
                    newTag.v = tagValueValue;

                    currentTagList.Add(newTag);
                }
            }

            if (currentTagList.Count > 1)
            {

                if (((IWorkspaceEdit2)m_editor.EditWorkspace).IsInEditOperation)
                {
                }
                else
                {
                    //   MessageBox.Show(resourceManager.GetString("OSMEditor_FeatureInspector_operationwarningcaption"), resourceManager.GetString("OSMClassExtension_FeatureInspector_operationwarningcaption"));
                    m_editor.StartOperation();
                }

                try
                {
                    // persist the collection in the blob/xml field
                    m_enumRow.Reset();

                    IFeature currentFeature = null;

                    while ((currentFeature = m_enumRow.Next() as IFeature) != null)
                    {
                        int tagCollectionFieldIndex = currentFeature.Fields.FindField("osmTags");

                        if (tagCollectionFieldIndex != -1)
                        {
                            _osmUtility.insertOSMTags(tagCollectionFieldIndex, (IRow)currentFeature, currentTagList.ToArray(), m_editor.EditWorkspace);

                            currentFeature.Store();
                        }
                    }
                }
                catch
                {
                }
                finally
                {
                    m_editor.StopOperation(resourceManager.GetString("OSMEditor_FeatureInspector_operationmenu"));
                }
            }
        }
开发者ID:leijiancd,项目名称:arcgis-osm-editor,代码行数:70,代码来源:OSMFeatureInspector.cs

示例13: dataCompanyList_RowsRemoved

 private void dataCompanyList_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
 {
     /* Row #'s extremely laggy */
     foreach (DataGridViewRow row in dataCompanyList.Rows)
     {
         row.HeaderCell.Value = (row.Index + 1).ToString();
     }
     dataCompanyList.AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders);
 }
开发者ID:drupaltr,项目名称:Search-Engine-Lead-Finder,代码行数:9,代码来源:formMain.cs

示例14: dataGridViewDetalleDeVenta_RowsRemoved

 private void dataGridViewDetalleDeVenta_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
 {
     textBoxMontoTotal.Text = calculateInvoiceTotalAmount().ToString();
     textBoxCambio.Text = calculateChange().ToString();
     textBoxCodigoDeBarras.Focus();
 }
开发者ID:christiancata,项目名称:SuperMercadoMio,代码行数:6,代码来源:Modificar.cs

示例15: dgvPurchaseItems_RowsRemoved

 private void dgvPurchaseItems_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
 {
     this.setBehaviourItemsChanged();
 }
开发者ID:JulianColaiacovo,项目名称:kiosco-marcos,代码行数:4,代码来源:SaleCart.cs


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