當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。