简体   繁体   English

Datagridview页眉单元

[英]Datagridview Header cell

   dgvProductCreation.Rows[e.RowIndex].HeaderCell

What is this property for (HeaderCell)? (HeaderCell)的此属性是什么? and what is the difference between it and Caption (If anyone can show me visually) Thanks 它与Caption有什么区别(如果有人可以直观地看到我的话),谢谢

Row HeaderCell is the "column" on the left of every row... Row HeaderCell是每行左侧的“列”。

It can be recognized by '*' special character 可以用“ *”特殊字符识别

The header cell of a row is typically used to display a row label. 行的标题单元格通常用于显示行标签。 Users can also click the row header to select the row if the DataGridView.SelectionMode property is set to DataGridViewSelectionMode.RowHeaderSelect. 如果DataGridView.SelectionMode属性设置为DataGridViewSelectionMode.RowHeaderSelect,则用户还可以单击行标题以选择行。

You can set RowHeader property to false if you don't want this in your DataGridView... 如果您不希望在DataGridView中将此属性设置为false,则可以将RowHeader属性设置为false。

screenshots: 屏幕截图:

http://i.stack.imgur.com/X1z6b.png http://i.stack.imgur.com/X1z6b.png

http://i263.photobucket.com/albums/ii135/jamesfreddyc/grid1-1.jpg http://i263.photobucket.com/albums/ii135/jamesfreddyc/grid1-1.jpg

I think caption is Column's property, not Row's 我认为标题是Column的财产,而不是Row的财产

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM