我们如何设置 Infragistrics Windows 网格控件内按钮的可见性
我有一个表单,其中使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先你必须实现行和单元格,
然后使用 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 :)
(我正在 Infragistics NetAdvantage for Windows Forms 2008 Vol. 2 CLR 2.0 中使用
UltraGrid
。)(I'm using the
UltraGrid
in Infragistics NetAdvantage for Windows Forms 2008 Vol. 2 CLR 2.0.)