我确信这个问题的答案是非常明显的,但对于我来说,我无法弄清楚如何从默认的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)
更多推荐
发布评论