本文整理汇总了C#中System.Windows.Forms.DataGridViewRowsAddedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# DataGridViewRowsAddedEventArgs类的具体用法?C# DataGridViewRowsAddedEventArgs怎么用?C# DataGridViewRowsAddedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DataGridViewRowsAddedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了DataGridViewRowsAddedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: dataGridView1_RowsAdded
private void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
//MessageBox.Show(e.RowIndex.ToString());
//return;
if (e.RowIndex < 0)
return;
//if (e.RowIndex == 0)
//dataGridView1.Rows[e.RowIndex].Tag = UpdateType.None;
else
//dataGridView1.Rows[e.RowIndex - 1].Tag = UpdateType.Insert;
dataGridView1.Rows[dataGridView1.RowCount - 1].Tag = UpdateType.Insert;
}
开发者ID:joydeba,项目名称:sn_rm,代码行数:12,代码来源:CourseUserControl.cs
示例17: OnRowsAdded
protected override void OnRowsAdded(DataGridViewRowsAddedEventArgs e)
{
for (int i = e.RowIndex; i < e.RowIndex + e.RowCount; i++)
{
DataGridViewRow row = Rows[i];
LogItem item = (LogItem)row.DataBoundItem;
row.DefaultCellStyle.ForeColor = item.TextColor;
}
FirstDisplayedScrollingRowIndex = Rows.Count - 1;//最後の列までスクロール
Invalidate(true);
base.OnRowsAdded(e);
}
开发者ID:omega227,项目名称:DeanCC,代码行数:12,代码来源:LogView.cs
示例18: participantsGrid_RowsAdded
private void participantsGrid_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
if(e.RowIndex != 0)
{
participantsGrid.Rows[e.RowIndex].Cells[4].Value =
Convert.ToInt32(participantsGrid.Rows[e.RowIndex - 1].Cells[4].Value) + 1;
}
else
{
participantsGrid.Rows[e.RowIndex].Cells[4].Value = e.RowIndex;
}
}
开发者ID:hanlonal,项目名称:CSE4982013,代码行数:12,代码来源:EditParticipants.cs
示例19: dgvProdutos_RowsAdded
private void dgvProdutos_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
for (int index = e.RowIndex; index <= e.RowIndex + e.RowCount - 1; index++)
{
DataGridViewRow row = dgvProdutos.Rows[index];
if (row.Cells[0].Value.ToString().EndsWith("P"))
{
row.DefaultCellStyle.ForeColor = Color.Red;
}
else
{
row.DefaultCellStyle.ForeColor = Color.Black;
}
}
}
开发者ID:jfpsb,项目名称:VandaConfeccoes,代码行数:16,代码来源:Produtos.cs
示例20: DataGrid_RowAdded
private void DataGrid_RowAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
double ifuValue = 0;
string ifuType;
try
{
ifuType = Convert.ToString(dataGridView1.Rows[e.RowIndex].Cells[0].Value);
ifuValue = Convert.ToDouble(dataGridView1.Rows[e.RowIndex].Cells[1].Value);
}
catch (Exception ex) {
SmartISLib.Messages.Error("Špatný formát záznamu. Používejte desetinné čárky místo teček.");
return;
}
string sql = String.Format("insert into TIFU(ifuType, ifuValue) values('{0}', {1})", ifuType, ifuValue.ToString(CultureInfo.InvariantCulture));
// TODO - nefunguje nejlepe: otestovat poradne.
SmartISLib.Data.Execute(sql);
}
开发者ID:batekmc,项目名称:fotoinfo,代码行数:17,代码来源:GlobalniNastaveni.cs
注:本文中的System.Windows.Forms.DataGridViewRowsAddedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论