当前位置: 首页>>代码示例>>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;未经允许,请勿转载。