简体   繁体   English

仅在第一行中显示DataGridView的Winform C#Taborder

[英]Winform C# Taborder of DataGridView only in first row

When I set this.grv.TabStop = true (grv's type is DataGridView) , taborder effect with each cell in DataGridView. 当我设置this.grv.TabStop = true (grv的类型是DataGridView)时,DataGridView中的每个单元格都具有taborder效果。 I want tab to DataGridView only stop in first row of list. 我希望选项卡到DataGridView只停止在列表的第一行。 How can I do? 我能怎么做? Thanks in advance! 提前致谢!

Set DataGridView.StandardTab property to true DataGridView.StandardTab属性设置为true

Gets or sets a value indicating whether the TAB key moves the focus to the next control in the tab order rather than moving focus to the next cell in the control. 获取或设置一个值,该值指示TAB键是否将焦点按Tab键顺序移动到下一个控件,而不是将焦点移动到控件中的下一个单元格。

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

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