BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
public static ISummary CreateSummaryMethod(SummaryDescriptor sd, Record record)
{
object obj = record.ParentTableDescriptor.Fields["Weight"].GetValue(record);
// -or -
// you could also access values from outside the table here, e.g. a external table
// of weights. You only need to make sure then that if you change values in the external table
// that you then call InvalidateSummariesTopDown on the grids Table object.
bool isNull = (obj == null || obj is DBNull);
if (isNull)
return Empty;
else
{
double val = Convert.ToDouble(obj);
return new TotalSummary(val);
}
}
Stefan