c# - 如何更改 UltraGrid 中的单元格内容

标签 c# .net infragistics ultrawingrid

如果金额单元格中的值已更新,我将尝试更改兄弟单元格(天)的值。问题是我不确定如何访问日单元格。这是我目前所拥有的。

 private void UltraGridEdit_AfterCellUpdate(object sender, CellEventArgs e)
        {
            if(e.Cell.Column.PropertyDescriptor.DisplayName.Equals("Amount"))
            {
                UltraGridHsaContributionEdit.ActiveRow.Band.Columns["StartDate"].?

            }
        }

最佳答案

你试过吗

e.Cell.Row.Cells["StartDate"].Value = DateTime.Today; //or whatever your date is

关于c# - 如何更改 UltraGrid 中的单元格内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7127168/

相关文章:

c# - 在 C#2.0 中不使用 foreach 循环过滤 List<> 对象

c# - 使 Entity Framework 只读

performance - 测量表格列中最长单元格的有效方法

winforms - 无法在 WinForms 设计器中选择 Infragistics 控件

wpf - 使用 MVVM 时如何设置 XamDataGrid 的 FieldLayout?

c# - 使用 C# 获取 IP 地址和适配器描述

c# - 无法使用 ADO.NET 建立与 SQL Server 的连接

c# - 系统.MissingMethodException : Method not found?

c# - 解析大双值C#

c# - 每次部署后,用户设置都会重置为默认值