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