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