无法更改 CheckBox 样式 UltraGridCell 的选中状态

Unable to change Checked state of an CheckBox style UltraGridCell

使用 Infragistics 套件,我接手了一个项目,其中有一列是 Checkbox 样式,代表数据库中的 Boolean 值。我在遵循处理更改它的值的代码时遇到了问题,因为我以前从未遇到过这样的事情。

如果我先更改 'Final Delivery' 列中的日期,我似乎只能更改此列的值。但是,在我正在经历的这个阶段之前,最终交货日期已经被分配了一个值,因此无法再次更改。

为什么以下代码不允许我更改选中的值,除非我先更改 "Final_Delivery" 值?

   If e.Cell.Column.ToString = "Final_Delivery" Then
            e.Cell.Row.Update()
        End If

        If Replace(e.Cell.Column.ToString, "[hidden]", "").Trim = "Customer_Paid" Then
            e.Cell.Row.Update()

            If e.Cell.Value = True Then
                e.Cell.Row.Cells("PaymentDate").Value = Today
            End If

            End If

您是否尝试过类似的设置网格的 layout/settings?

YourUltraGrid.DisplayLayout.Bands(0).Override.CellClickAction = CellClickAction.Edit