删除gridview选择器列(remove gridview selector column)

编程入门 行业动态 更新时间:2024-10-24 08:32:12
删除gridview选择器列(remove gridview selector column)

我确信这个问题的答案是非常明显的,但对于我来说,我无法弄清楚如何从默认的winforms gridview中删除“选择器”列。 (红色箭头指向的列)。

我已经尝试以编程方式删除列gridview.Columns[0].Remove但刚刚删除我的第一个数据列。 它也没有出现在“列集”中,而且我玩过所有看似有希望的设置。

谢谢您的帮助!

I'm sure the answer to this question is incredibly obvious, but for the life of me I can't figure out how to remove the "selector" column from the default winforms gridview. (The column the red arrow is pointing at).

I've tried programmatically removing the column gridview.Columns[0].Remove but that just removed my first data column. It doesn't show up in the "column collection" also, and I've played with all the settings that looked somewhat promising.

Thanks for the help!

最满意答案

在GridView中将RowHeadersVisible设置为False (它是一个属性)

Set the RowHeadersVisible to False in the GridView (it's a property)

更多推荐

本文发布于:2023-07-29 20:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319551.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:选择器   gridview   remove   column   selector

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!