本文整理汇总了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;
}
}
示例2: dgvSearchCriteria_RowsAdded
private void dgvSearchCriteria_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
for (int i = e.RowIndex; i < e.RowIndex + e.RowCount; i++)
{
setNewRowDefaultValues(i);
}
}
示例3: dgvProdutosAdicionados_RowsAdded
private void dgvProdutosAdicionados_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
if (e.RowIndex > -1)
{
calculaPrecos();
}
}
示例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");
}
示例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);
}
}
示例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";
}
}
}
示例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;
}
}
示例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);
}
}
}
}
示例9: drivesList_RowsAdded
private void drivesList_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
mountDrive.Enabled = true;
unmountDrive.Enabled = true;
removeDrive.Enabled = true;
changePassword.Enabled = true;
}
示例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();
}
}
示例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];
}
示例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;
}
}
示例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);
}
示例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();
}
}
示例15: dataGridView1_RowsAdded
private void dataGridView1_RowsAdded(object sender,
DataGridViewRowsAddedEventArgs e)
{
if (newRowNeeded)
{
newRowNeeded = false;
numberOfRows = numberOfRows + 1;
}
}