且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

根据值隐藏单元格内容

更新时间:2022-12-02 21:36:46

我感觉到您要隐藏单元格值,而不是 列.顺便说一句,您可以使列 visible 可见,或者 不可见,对于某些行,您无法将其设置为可见. 对于其他人不可见.

I have a feeling that you're trying to hide cell values, not columns. Just as an aside, you can either make a column visible, or not visible, you can't make it visible for some rows & not visible for others.

如果我怀疑您实际上是在尝试操作属性值 在行中,您可以通过两种方式进行操作.

If, as I suspect, you're actually trying to manipulate property values in rows, there are two ways you could do that.

  1. 计算的属性-在非常简单的情况下,计算的属性可能可以正常运行,但要提防性能下降.
  2. 自定义 RIA服务-这是我处理任何合理的复杂情况的方式,在这种情况下,计算属性的性能将不够好.
  1. Computed Properties - for very simple scenarios, computed properties might work OK, but beware the performance hit.
  2. Custom RIA Service - this is the way I handle any reasonably complex scenarios, where the performance of computed properties would not be good enough.