我们如何设置 Infragistrics Windows 网格控件内按钮的可见性

发布于 2024-07-05 16:19:25 字数 215 浏览 12 评论 0原文

我有一个表单,其中使用 Infragistics Windows 网格控件来显示数据。 在此,我在其中一个单元格上放置了一个按钮。 我想根据行条件将其可见性设置为 True 或 False。 我已经处理了 UltraWinGrid 控件的 InitializeRow 事件,并且能够禁用该按钮。 但我无法将按钮的可见设置为 False。

I have a form where i have used Infragistics windows grid control to display the data.
In this, i have placed a button on one of the cell. I want to set its visibility either True or False based on the row condition.
I have handled the InitializeRow event of UltraWinGrid control and able to disable the button. But i am unable to set the button's visible to False.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

晨光如昨 2024-07-12 16:19:26

首先你必须实现行和单元格,
然后使用 findControl 方法并将其分配给一个按钮,
现在按钮就在你的手中。 您可以设置可见性:)

At first yo must achieve the row and cell ,
then use findControl method and assign that to a button ,
now the button is in your hand . you can set the visibility :)

孤者何惧 2024-07-12 16:19:25
UltraGridRow row = ...

row.Cells[buttonCellIndex].Hidden = true;

(我正在 Infragistics NetAdvantage for Windows Forms 2008 Vol. 2 CLR 2.0 中使用 UltraGrid。)

UltraGridRow row = ...

row.Cells[buttonCellIndex].Hidden = true;

(I'm using the UltraGrid in Infragistics NetAdvantage for Windows Forms 2008 Vol. 2 CLR 2.0.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文