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


C# Forms.DataGridViewRowEventArgs類代碼示例

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


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

示例1: dataGridView1_UserAddedRow

 private void dataGridView1_UserAddedRow(object sender, DataGridViewRowEventArgs e)
 {
     if (dataGridView1.Rows.Count == 12) {
         dataGridView1.AllowUserToAddRows = false;
         MessageBox.Show("Solo puedes agregar 11 elementos a la tabla.", "Advertencia", MessageBoxButtons.YesNo, MessageBoxIcon.Stop);
     }
 }
開發者ID:luisgb92,項目名稱:WinFormBorder,代碼行數:7,代碼來源:CambioTabla.cs

示例2: tablaDatos_UserAddedRow

        private void tablaDatos_UserAddedRow(object sender, DataGridViewRowEventArgs e)
        {
            tablaDatos.Rows[tablaDatos.Rows.Count - 1].ReadOnly = true;

            for (int j = 0; j < tablaDatos.Columns.Count; j++)
                tablaDatos.Rows[tablaDatos.Rows.Count - 1].Cells[j].Style.BackColor = Color.Gray;
        }
開發者ID:miguellgt,項目名稱:file-structures,代碼行數:7,代碼來源:FOrgHashEstatica.cs

示例3: dtgUnidadesMedida_UserAddedRow

 private void dtgUnidadesMedida_UserAddedRow(object sender, DataGridViewRowEventArgs e)
 {
     if (e.Row.IsNewRow)
     {
         ((List<UnitMeasureModel>)((BindingSource)dtgUnidadesMedida.DataSource).DataSource)[e.Row.Index - 1].Id = Guid.NewGuid();
         ((List<UnitMeasureModel>)((BindingSource)dtgUnidadesMedida.DataSource).DataSource)[e.Row.Index - 1].IsNewRegister = true;
     }
 }
開發者ID:ARESFAAS,項目名稱:SolucionFacturando,代碼行數:8,代碼來源:Configuracion.cs

示例4: dtgTiposIdentificacion_UserAddedRow

 private void dtgTiposIdentificacion_UserAddedRow(object sender, DataGridViewRowEventArgs e)
 {
     if (e.Row.IsNewRow)
     {
         ((List<IdentificationTypeModel>)((BindingSource)dtgTiposIdentificacion.DataSource).DataSource)[e.Row.Index - 1].Id = Guid.NewGuid();
         ((List<IdentificationTypeModel>)((BindingSource)dtgTiposIdentificacion.DataSource).DataSource)[e.Row.Index - 1].IsNewRegister = true;
     }
 }
開發者ID:ARESFAAS,項目名稱:SolucionFacturando,代碼行數:8,代碼來源:Configuracion.cs

示例5: dtgImpuestos_UserAddedRow

 private void dtgImpuestos_UserAddedRow(object sender, DataGridViewRowEventArgs e)
 {
     if (e.Row.IsNewRow)
     {
         ((List<TaxModel>)((BindingSource)dtgImpuestos.DataSource).DataSource)[e.Row.Index - 1].Id = Guid.NewGuid();
         ((List<TaxModel>)((BindingSource)dtgImpuestos.DataSource).DataSource)[e.Row.Index - 1].IsNewRegister = true;
     }
 }
開發者ID:ARESFAAS,項目名稱:SolucionFacturando,代碼行數:8,代碼來源:Configuracion.cs

示例6: dgidGroup_UserAddedRow

        private void dgidGroup_UserAddedRow(object sender, DataGridViewRowEventArgs e)
        {
            var a = e.Row.DataBoundItem;
            if(a is ProductGroup)
            {

            }
        }
開發者ID:werynguyen,項目名稱:Coeus,代碼行數:8,代碼來源:ProductGroupScreen.cs

示例7: OnUserDeletedRow

 protected override void OnUserDeletedRow(DataGridViewRowEventArgs e)
 {
     if (e.Row != null && mQueueDeleteEvents)
     {
         mDeletedRows++;
     }
     base.OnUserDeletedRow(e);
 }
開發者ID:tvandijck,項目名稱:flysight,代碼行數:8,代碼來源:BatchedDataGridView.cs

示例8: dataGridView_DefaultValuesNeeded

 private void dataGridView_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e)
 {
     e.Row.Cells["id"].Value = (Int64)DataBaseDriver.Instance.ProductsDataTable.Rows[DataBaseDriver.Instance.ProductsDataTable.Rows.Count - 1]["id"] + 1;
     e.Row.Cells["prime_cost"].Value = 0;
     e.Row.Cells["price"].Value = 0;
     e.Row.Cells["category_id"].Value = 1;
     e.Row.Cells["is_removed"].Value = 0;
 }
開發者ID:tekord,項目名稱:zabegalovka,代碼行數:8,代碼來源:AdminForm.cs

示例9: dgvPlayers_DefaultValuesNeeded

 private void dgvPlayers_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e)
 {
     Player newPlayer = new Player()
     {
         Name = "Write name";
         Wins 
     }
 } 
開發者ID:SpaceCrab,項目名稱:gitRekt,代碼行數:8,代碼來源:Form1.cs

示例10: dgDepartmentss_UserAddedRow

		private void dgDepartmentss_UserAddedRow(object sender, DataGridViewRowEventArgs e)
		{
			int id = Convert.ToInt32(departmentClient.CallSyncMethod("InsertDepartment", Guid.NewGuid().ToString()));

			var rowIndex = dgDepartments.Rows.IndexOf(e.Row);

			dgDepartments.Rows[rowIndex].Tag = id;
		}
開發者ID:Lyror,項目名稱:EmployeeManagement,代碼行數:8,代碼來源:NewDepartment.cs

示例11: dataGridView2_UserAddedRow

 private void dataGridView2_UserAddedRow(object sender, DataGridViewRowEventArgs e)
 {
     if (dtgBXTrungGian.Rows.Count > 2)
         dtgBXTrungGian.AllowUserToAddRows = false;
     {
         dtgBXTrungGian.Rows[dtgBXTrungGian.RowCount - 1].Cells[0].Value = "";
         dtgBXTrungGian.Rows[dtgBXTrungGian.RowCount - 1].Cells[1].Value = "";
     }
 }
開發者ID:duphattai,項目名稱:OOAD,代碼行數:9,代碼來源:frmLichChuyenDi.cs

示例12: gridLineDataGridView1_DefaultValuesNeeded

 private void gridLineDataGridView1_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e)
 {
     // Default Enabled and Pass Execution Context to true
     //e.Row.Cells["Enabled"]
     //formEvent.Enabled = true;
     //formEvent.PassExecutionContext = true;
     e.Row.Cells[scriptDataGridViewTextBoxColumn.Name].Value = Scripts.Last().Name;
     e.Row.Cells[IsEnabled.Name].Value = true;
     e.Row.Cells[PassExecutionContext.Name].Value = true;
 }
開發者ID:NORENBUCH,項目名稱:XrmToolBox,代碼行數:10,代碼來源:FormEventsDialog.cs

示例13: dataGridViewImages_UserDeletedRow

        private void dataGridViewImages_UserDeletedRow(object sender, DataGridViewRowEventArgs e)
        {
            Validate();
            //signatureCounterDataSet1.Clear();
            tables.UpdateAll(signatureCounterDataSet1);
            tables.SignatureTableAdapter.Fill(signatureCounterDataSet1.Signature);

            ShowSignatureList();
            ShowSelectedImage();
            ShowTrimmingRectangle();
        }
開發者ID:ssashir06,項目名稱:SignatureTool,代碼行數:11,代碼來源:ImageListingForm.cs

示例14: OnRowHeightChanged

 protected override void OnRowHeightChanged(DataGridViewRowEventArgs e)
 {
     // Bug 242.
     try
     {
         base.OnRowHeightChanged(e);
     }
     catch (InvalidOperationException)
     {
     }
 }
開發者ID:shankithegreat,項目名稱:commanderdotnet,代碼行數:11,代碼來源:GroupDataGridView.cs

示例15: dataG_UserDeletedRow

        private void dataG_UserDeletedRow(object sender, DataGridViewRowEventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Вы действительно хотите удалить эту запись?", "Внимание!", MessageBoxButtons.YesNo);
            if (dialogResult == DialogResult.Yes)
            {
                string id = e.Row.Cells[0].Value.ToString();

                db.FetchAllSql("DELETE  FROM `regs`  WHERE id = '" + id + "'");

                loadit();
            }
        }
開發者ID:tatar1nro,項目名稱:KKM_Trash,代碼行數:12,代碼來源:listRegs.cs


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