【问题标题】:how to set focus on Devcomponents SuperGrid filter programmatically in dot net如何在 dot net 中以编程方式将焦点设置在 Devcomponents SuperGrid 过滤器上
【发布时间】:2016-04-13 08:01:26
【问题描述】:

如何在 dot net 中以编程方式将焦点设置在 Devcomponents SuperGrid 过滤器上

当我按下特定键时,我的焦点应该设置为 SuperGrid 过滤器第 1 列或第 2 列。

我们可以通过将 Supergrid EnableFiltering & EnableCoulumneFilter 的 primaryGrid 属性设置为 true 来启用过滤

我尝试了很多事情,但都失败了。谁能帮忙

【问题讨论】:

  • 您使用哪种语言?你应该只用你想要答案的语言来标记问题。也看看这里minimal reproducible example你还应该包括到目前为止你已经得到的代码。这样我们就可以 - 希望能提供一个可行的答案

标签: c# asp.net .net vb.net


【解决方案1】:

以下解决方案对我有用。

Dim panel As GridPanel = LookupSuperGrid.PrimaryGrid 
LookupSuperGrid.PrimaryGrid.Filter.ActivateFilterEdit(panel.Columns("Account"))

【讨论】:

    猜你喜欢
    • 2020-02-15
    • 2019-05-04
    • 2021-01-19
    • 1970-01-01
    • 1970-01-01
    • 2021-10-30
    • 2018-10-01
    • 2021-06-13
    • 2019-10-06
    相关资源
    最近更新 更多