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

Ant*_*yrd 2 .net c# infragistics ultrawingrid

如果更新数量单元格中的值,我正在尝试更改同级单元格(天)的值。问题是我不确定如何访问日间单元格。这是我到目前为止所拥有的。

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

            }
        }
Run Code Online (Sandbox Code Playgroud)

sco*_*ott 5

你有没有试过这个

e.Cell.Row.Cells["StartDate"].Value = DateTime.Today; //or whatever your date is
Run Code Online (Sandbox Code Playgroud)