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

查看:683
本文介绍了如何隐藏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天全站免登陆