【问题标题】:Separate the binding values according to a condtion in Ultragrid根据 Ultragrid 中的条件分离绑定值
【发布时间】:2013-07-16 10:19:57
【问题描述】:

我需要根据某些条件将column 的特定值绑定到另一个column

我的网格中有四个columns,因此基于第二个column 的值,我需要将第三列的值绑定到@ 中的相同或第四个column(即其中一个) 987654326@.

在什么情况下我可以写这个?如何做到这一点?

【问题讨论】:

    标签: vb.net infragistics ultrawingrid


    【解决方案1】:

    使用UltraGridInitializeRow事件

    试试这个:

    //代码

    Private Sub grdReport_InitializeRow(sender As Object, e As InitializeRowEventArgs) Handles grdReport.InitializeRow
    
        If (e.Row.Cells("column1").Value Is "") Then
          //Do ur stuff here
        End If
    
    End Sub
    

    【讨论】:

    • 如果您想使用更少的内存,最好使用 UltraGridRow 对象的 GetCellValue 方法,而不是直接访问单元格,因为单元格是在必要时创建的,访问单元格将导致其创建。在帮助中的内存使用主题中有更多详细信息:help.infragistics.com/NetAdvantage/WinForms/Current/CLR4.0/…
    猜你喜欢
    • 1970-01-01
    • 2014-11-24
    • 2019-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-23
    相关资源
    最近更新 更多