删除GridView选择器列 [英] remove gridview selector column
问题描述
我敢肯定,这个问题的答案是显而易见的,但是我一生都无法确定如何从默认Winforms网格视图中删除选择器列。 (红色箭头指向的列)。
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).
我尝试以编程方式删除列 gridview.Columns [0] .Remove
但这只是删除了我的第一个数据列。它也没有出现在列集合中,并且我已经使用了所有看起来有些前途的设置。
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.
感谢您的帮助!
推荐答案
将 RowHeadersVisible
设置为 False
在GridView中(它是一个属性)
Set the RowHeadersVisible
to False
in the GridView (it's a property)
这篇关于删除GridView选择器列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!