本文整理匯總了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();
}
}
示例2: dgPelanggan_RowsRemoved
private void dgPelanggan_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
if (pelanggan.Rows.Count < 1)
{
btnHapus.Enabled = false;
}
}
示例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);
}
}
示例4: dtgvExe_RowsRemoved
private void dtgvExe_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
if (dtgvExe.Rows.Count == 0)
{
btnExcluir.Enabled = false;
btnAlterar.Enabled = false;
}
}
示例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);
}
示例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;
}
示例7: dataGridView_RowsRemoved
private void dataGridView_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
CalculateLastColumnWidth(sender);
}
示例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;
}
}
}
示例9: dataGridViewDetalleDeIngreso_RowsRemoved
private void dataGridViewDetalleDeIngreso_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
textBoxMonto.Text = calculateMonto();
}
示例10: authorizationRulesDataGridView_RowsRemoved
private void authorizationRulesDataGridView_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
authorizationRulesDataGridView_Resize(sender, null);
}
示例11: OnRowsPostRemovedInternal
internal void OnRowsPostRemovedInternal (DataGridViewRowsRemovedEventArgs e)
{
Invalidate ();
OnRowsRemoved (e);
}
示例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"));
}
}
}
示例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);
}
示例14: dataGridViewDetalleDeVenta_RowsRemoved
private void dataGridViewDetalleDeVenta_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
textBoxMontoTotal.Text = calculateInvoiceTotalAmount().ToString();
textBoxCambio.Text = calculateChange().ToString();
textBoxCodigoDeBarras.Focus();
}
示例15: dgvPurchaseItems_RowsRemoved
private void dgvPurchaseItems_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
this.setBehaviourItemsChanged();
}