简体   繁体   English

标题作为datagridview vb.net中的组合框

[英]Header as combo box in datagridview vb.net

Is is possible to change just the header in a datagridview to be a combobox? 是否可以仅将datagridview中的标头更改为组合框? I have data I am displaying that I wish the user to be able to change the header based on data within a combobox. 我有显示的数据,希望用户能够根据组合框内的数据更改标题。 I need to use a datagridview and keep the rest of my controls on my form the same. 我需要使用datagridview并将其余控件保持在窗体上。 Is this even possible? 这有可能吗?

我不相信您可以将DataGridView的列标题设置为ComboBox ,但是完全有可能在更改时使用ComboBoxDataGridView上应用新的RowFilter ,我猜这是有效的你在追。

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

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