EhLib
ContentsIndexHome
PreviousUpNext
TCustomDBGridEh.GetFooterValue Method

Returns a footer value depending on Column.ValueType

Pascal
function GetFooterValue(Row: Integer; Column: TColumnEh): String; virtual;

if Column.ValueType = fvtNon, then function return empty string 

if Column.ValueType = fvtSum, then function return sum of Column.Field 

f Column.ValueType = fvtCount, then function return count of records (Local filter taken into account). 

f Column.ValueType = fvtFieldValue, then function return value of field defined in Column.Footer.FieldName property. 

f Column.ValueType = fvtStaticText, then function return Column.Footer.Value.

Copyright (c) 1998-2013. All rights reserved.
What do you think about this topic? Send feedback!