如何隐藏 C# DataGridView 默认 * 行? [英] How to hide C# DataGridView default * row?

查看:40
本文介绍了如何隐藏 C# DataGridView 默认 * 行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C# DataGridView 控件有一个默认的、空的最后一行,用 * 标记.我怎样才能隐藏它?

C# DataGridView controls have a default, empty last row, marked with a *. How can I hide it?

推荐答案

您所说的行是新行"行.这可以通过将 AllowUserToAddRows 属性设置为 false 来隐藏.

The row you speak of is the 'new row' row. This can be hidden by setting the AllowUserToAddRows property to false.

或者,您可以取消选中 DataGridView 任务对话框中的启用添加"复选框.

Alternatively you can uncheck the 'Enable Adding' tick box in the DataGridView Tasks dialog.

这篇关于如何隐藏 C# DataGridView 默认 * 行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆