I have added a new column to the Purchase History grid on the purchase advisor screen that computes the number of days between the receipt date and the order date. This works well, the only “issue” that I see is that when I right click on the grid and show summaries, my new field doesn’t show the sigma to summarize it even though the value is numeric. Any ideas. Here is the code snippet of the calculation and how I set the value of the new column.
DateTime receiptDate = Convert.ToDateTime(row.Cells[“ReceiptDate”].Value.ToString());
DateTime orderDate = Convert.ToDateTime(row.Cells[“OrderDate”].Value.ToString());
row.Cells[“DaysLead”].Value = ((TimeSpan)(receiptDate - orderDate)).Days;