How to change a cells content in UltraGrid

Antarr Byrd picture Antarr Byrd · Aug 19, 2011 · Viewed 13.3k times · Source

I'm trying to change the value of a sibling cell(day) if the value in the amount cell is updated. The problem is that I'm not sure how to access the day cell. Here is what I have so far.

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

            }
        }

Answer

scott picture scott · Aug 19, 2011

Have you tried this

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