• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.DataGridViewRowEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.DataGridViewRowEventArgs的典型用法代码示例。如果您正苦于以下问题:C# DataGridViewRowEventArgs类的具体用法?C# DataGridViewRowEventArgs怎么用?C# DataGridViewRowEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DataGridViewRowEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了DataGridViewRowEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: dgv_DefaultValuesNeeded

        private void dgv_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e)
        {
            int index = 1;
            if (_table != null)
            {
                object o = _table.Compute("MAX(順位)", null);
                if (o != DBNull.Value)
                    index = Convert.ToInt32(o) + 1;
            }

            e.Row.Cells[col順位.Index].Value = index;
            e.Row.Cells[col排序方式.Index].Value = "遞增";
        }
开发者ID:amon0424,项目名称:SWLHMS,代码行数:13,代码来源:InspectListReportSortForm.cs


示例17: dtgConfiguracion_UserAddedRow

        private void dtgConfiguracion_UserAddedRow(object sender, DataGridViewRowEventArgs e)
        {
            if (e.Row.IsNewRow)
            {
                ((List<ConfigurationModel>)((BindingSource)dtgConfiguracion.DataSource).DataSource)[e.Row.Index - 1].Id = Guid.NewGuid();
                ((List<ConfigurationModel>)((BindingSource)dtgConfiguracion.DataSource).DataSource)[e.Row.Index - 1].IsNewRegister = true;

                dtgConfiguracion.Rows[e.Row.Index - 1].Cells["IdCurrency"].Value =
                    ((List<CurrencyTypeModel>)((DataGridViewComboBoxColumn)(dtgConfiguracion.Columns["CurrencyList"])).DataSource).FirstOrDefault().Id;
                dtgConfiguracion.Rows[e.Row.Index - 1].Cells["IdCountry"].Value =
                    ((List<CountryModel>)((DataGridViewComboBoxColumn)(dtgConfiguracion.Columns["CountryList"])).DataSource).FirstOrDefault().Id;
            }
        }
开发者ID:ARESFAAS,项目名称:SolucionFacturando,代码行数:13,代码来源:Configuracion.cs


示例18: dataGridView_Meus_Sigmas_DefaultValuesNeeded

        private void dataGridView_Meus_Sigmas_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e)
        {
            // red
            e.Row.Cells[0].Value = 100;
            e.Row.Cells[1].Value = 1.5;

            // green
            e.Row.Cells[2].Value = 30;
            e.Row.Cells[3].Value = 0.9;

            // blue
            e.Row.Cells[4].Value = 20;
            e.Row.Cells[5].Value = 1.2;
        }
开发者ID:thecortex,项目名称:CS-Tasks,代码行数:14,代码来源:Form_Task_1_b.cs


示例19: dgv_Common_DefaultValuesNeeded

        private void dgv_Common_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e)
        {
            e.Row.Cells["CreateDate"].Value = System.DateTime.Now;
            e.Row.Cells["ModifyDate"].Value = System.DateTime.Now;
            ZX.Win.FunctionParameter fp = new ZX.Win.FunctionParameter();
            fp = (ZX.Win.FunctionParameter)this.Tag;

                e.Row.Cells["ModifierName"].Value=fp.pub_sUserNameByChinese;

            if (e.Row.Cells["CreateName"].Value==null)
            {

                e.Row.Cells["CreateName"].Value = fp.pub_sUserNameByChinese;
            }
        }
开发者ID:BGCX262,项目名称:zxerp2013-svn-to-git,代码行数:15,代码来源:Form_Main_PartType.cs


示例20: AddNewRow

        internal void AddNewRow(bool createdByEditing)
        {
            Debug.Assert(this.Columns.Count > 0);
            Debug.Assert(this.newRowIndex == -1);

            this.Rows.AddInternal(true /*newRow*/, null /*values*/);
            this.newRowIndex = this.Rows.Count - 1;
            this.dataGridViewState1[DATAGRIDVIEWSTATE1_newRowCreatedByEditing] = createdByEditing;

            if (createdByEditing)
            {
                DataGridViewRowEventArgs dgvre = new DataGridViewRowEventArgs(this.Rows[this.newRowIndex]);
                OnUserAddedRow(dgvre);
            }
        }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:15,代码来源:DataGridViewMethods.cs



注:本文中的System.Windows.Forms.DataGridViewRowEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.DataGridViewRowPostPaintEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Forms.DataGridViewRowCancelEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap