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


C# Forms.DataGridViewRowsAddedEventArgs類代碼示例

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


DataGridViewRowsAddedEventArgs類屬於System.Windows.Forms命名空間,在下文中一共展示了DataGridViewRowsAddedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: celdaResultados_RowsAdded

 private void celdaResultados_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     if (celdaResultados.RowCount > 5)
     {
         celdaResultados.AllowUserToAddRows = false;
     }
 }
開發者ID:Xidrovo,項目名稱:BaseDeDatos,代碼行數:7,代碼來源:Sustentacion.cs

示例2: dgvSearchCriteria_RowsAdded

 private void dgvSearchCriteria_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     for (int i = e.RowIndex; i < e.RowIndex + e.RowCount; i++)
     {
         setNewRowDefaultValues(i);
     }
 }
開發者ID:pusp,項目名稱:o2platform,代碼行數:7,代碼來源:ascx_SearchResults.cs

示例3: dgvProdutosAdicionados_RowsAdded

 private void dgvProdutosAdicionados_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         calculaPrecos();
     }
 }
開發者ID:jfpsb,項目名稱:VandaConfeccoes,代碼行數:7,代碼來源:TelaVenda.cs

示例4: dgvVenda_RowsAdded

 private void dgvVenda_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     somaValoresColuna.somaValoresColuna(dgvVenda, txtTotalAVista, "pagoAVista");
     somaValoresColuna.somaValoresColuna(dgvVenda, txtTotalCartao, "pagoEmCartao");
     somaValoresColuna.somaValoresColuna(dgvVenda, txtTotalDesconto, "desconto");
     somaValoresColuna.somaValoresColuna(dgvVenda, txtTotalAposDesconto, "totalAposDesconto");
 }
開發者ID:jfpsb,項目名稱:VandaConfeccoes,代碼行數:7,代碼來源:Vendas.cs

示例5: dgvSP_RowsAdded

 private void dgvSP_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     foreach (DataGridViewRow rw in dgvSP.Rows)
     {
         rw.Cells[1].Value = String.Format("{0}", rw.Index + 1);
     }
 }
開發者ID:CodePh4nt0m,項目名稱:DevKit,代碼行數:7,代碼來源:frmImport.cs

示例6: dataGridViewSolution_RowsAdded

 private void dataGridViewSolution_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     if (e.RowIndex > 1)
     {
         if (dataGridViewSolution.Rows[e.RowIndex - 1].Cells["ColumnIP"].Value == null)
         {
             dataGridViewSolution.Rows[e.RowIndex - 1].Cells["ColumnIP"].Value = dataGridViewSolution.Rows[e.RowIndex - 2].Cells["ColumnIP"].Value;
         }
         if (dataGridViewSolution.Rows[e.RowIndex - 1].Cells["ColumnPort"].Value == null)
         {
             dataGridViewSolution.Rows[e.RowIndex - 1].Cells["ColumnPort"].Value = dataGridViewSolution.Rows[e.RowIndex - 2].Cells["ColumnPort"].Value;
         }
         if (dataGridViewSolution.Rows[e.RowIndex - 1].Cells["ColumnLanguage"].Value == null)
         {
             dataGridViewSolution.Rows[e.RowIndex - 1].Cells["ColumnLanguage"].Value = "ENG";
         }
     }
     else if(e.RowIndex == 1)
     {
         if (dataGridViewSolution.Rows[e.RowIndex - 1].Cells["ColumnPort"].Value == null)
         {
             dataGridViewSolution.Rows[e.RowIndex - 1].Cells["ColumnPort"].Value = Config.ServerPort;
         }
         if (dataGridViewSolution.Rows[e.RowIndex - 1].Cells["ColumnLanguage"].Value == null)
         {
             dataGridViewSolution.Rows[e.RowIndex - 1].Cells["ColumnLanguage"].Value = "ENG";
         }
     }
 }
開發者ID:san90279,項目名稱:UK_OAS,代碼行數:29,代碼來源:frmSolution.cs

示例7: wfEventsGrid_RowsAdded

        private void wfEventsGrid_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
        {
            for ( int i = e.RowIndex; i < e.RowIndex + e.RowCount; i++ )
             {
            DataGridViewRow row = wfEventsGrid.Rows[i];
            WorkflowTrackingRecord record =
               (WorkflowTrackingRecord)row.DataBoundItem;

            string argsText = "";

            switch ( record.TrackingWorkflowEvent )
            {
            case TrackingWorkflowEvent.Suspended:
               argsText = ((TrackingWorkflowSuspendedEventArgs)record.EventArgs).Error;
               break;
            case TrackingWorkflowEvent.Exception:
               argsText = ((TrackingWorkflowExceptionEventArgs)record.EventArgs).Exception.Message;
               break;
            case TrackingWorkflowEvent.Changed:
               argsText = string.Format("Number of Changes: {0}", ((TrackingWorkflowChangedEventArgs)record.EventArgs).Changes.Count);
               break;
            case TrackingWorkflowEvent.Terminated:
               argsText = ((TrackingWorkflowTerminatedEventArgs)record.EventArgs).Exception.Message;
               break;
            default:
               // no need to do anything;
               break;
            }
            row.Cells[ArgsColumn.Name].Value = argsText;
             }
        }
開發者ID:tomasr,項目名稱:sqltrackingquerysample,代碼行數:31,代碼來源:MainForm.cs

示例8: m_DataGridView_RowsAdded

 void m_DataGridView_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     DataGridViewRow datrow =  m_DataGridView.Rows[e.RowIndex];
     //get the version name and match it and populate coresponding user version and changes
     string versionName = datrow.Cells["Version"].Value as string;
     VersionInfo versioninfo;
     m_DataManager.VersionInfoFromVersionName.TryGetValue(versionName, out versioninfo);
     if (versioninfo.UserVersName != null)
     {
         DataGridViewComboBoxCell co = datrow.Cells["UserVersions"] as DataGridViewComboBoxCell;
         foreach (string userverionname in versioninfo.UserVersName)
         {
             co.Items.Add(userverionname);
         }
     }
     if (versioninfo.changesInVersion != null)
     {
         DataGridViewComboBoxCell co = datrow.Cells["Changes"] as DataGridViewComboBoxCell;
         foreach (ChangeInstruction changeinstruction in versioninfo.changesInVersion)
         {
             if (changeinstruction.change != ChangeType.Rename)
             {
                 co.Items.Add(changeinstruction.change + " " + changeinstruction.externalLocation);
             }
             else
             {
                 co.Items.Add(changeinstruction.change + " " + changeinstruction.folderUnit.oldLocation + " to " + changeinstruction.externalLocation);
             }
         }
     }
 }
開發者ID:LucindaInc,項目名稱:FolderTrack,代碼行數:31,代碼來源:SearchDataTable.cs

示例9: drivesList_RowsAdded

 private void drivesList_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     mountDrive.Enabled = true;
     unmountDrive.Enabled = true;
     removeDrive.Enabled = true;
     changePassword.Enabled = true;
 }
開發者ID:Legend1991,項目名稱:SecureBox_WinForms,代碼行數:7,代碼來源:Main.cs

示例10: prescriptionList_RowsAdded

 void prescriptionList_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     for (int i = e.RowIndex; i < e.RowIndex + e.RowCount; i++)
     {
         Prescription p = (Prescription)this.prescriptionBindingSource[i];
         this.prescriptionList.Rows[i].Cells[1].Value = p.MedicinesToString();
     }
 }
開發者ID:thompsonx,項目名稱:vis_ordinace,代碼行數:8,代碼來源:RequestList.cs

示例11: traceDataGridView_RowsAdded

        private void traceDataGridView_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
        {
            if (!Settings.Default.EnableAutoScroll) return;

            if (traceDataGridView.CurrentCell == null) return;

            traceDataGridView.CurrentCell = traceDataGridView.Rows[e.RowIndex].Cells[traceDataGridView.CurrentCell.ColumnIndex];
        }
開發者ID:ren85,項目名稱:free-sql-server-profiler,代碼行數:8,代碼來源:TraceViewControl.cs

示例12: DataInformTable_RowsAdded

        private void DataInformTable_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
        {
            if (String.Compare(DataInformTable[0, e.RowIndex].Value.ToString(), "Технические требования") == 0)
            {
                DataInformTable.Rows[e.RowIndex].Height = 50;

            }
        }
開發者ID:Blyumenshteyn,項目名稱:UchetUSP,代碼行數:8,代碼來源:InformAboutElement.cs

示例13: dataGridView1_RowsAdded

 private void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     if (!notice)
         return;
     string k = dataGridView1.Rows[e.RowIndex].Cells[0].Value as string;
     if (k == null)
         k = string.Empty;
     T.addString(k);
 }
開發者ID:hhergeth,項目名稱:RisenEditor,代碼行數:9,代碼來源:TabViewer.cs

示例14: dgvGrades_RowsAdded

        private void dgvGrades_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
        {
            for (int i = 0; i < e.RowCount; i++)
            {
                this.dgvGrades.Rows[e.RowIndex + i].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight;

                this.dgvGrades.Rows[e.RowIndex + i].HeaderCell.Value = (e.RowIndex + i + 1).ToString();
            }
        }
開發者ID:owenyang0,項目名稱:FollowTyperAndSender,代碼行數:9,代碼來源:TypeHis.cs

示例15: dataGridView1_RowsAdded

 private void dataGridView1_RowsAdded(object sender,
      DataGridViewRowsAddedEventArgs e)
 {
     if (newRowNeeded)
     {
         newRowNeeded = false;
         numberOfRows = numberOfRows + 1;
     }
 }
開發者ID:ariesy,項目名稱:Sirius.DataGridViewVirtualModeDemo,代碼行數:9,代碼來源:VirtualModeDemo.cs


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