enhanced TDBGrid component which provides many new functions (show checkboxes, glyph for graphics and memo fields, build-in editors, pictures in title row or in data cells, multiple line titles, sorting functions etc)
|
function IsDatasetLinked: boolean; |
|
function IsActive: boolean; |
|
function IsFiltered: boolean; |
|
function IsEmpty: boolean; |
|
function IsNotEmpty: boolean; deprecated 'Use IsEmpty instead.'; |
|
function IsFieldAsBoolean(F: TField): boolean; |
|
function FieldAsBooleanValue(F: TField): boolean; |
|
function FieldAsBooleanDefValue(F: TField; Value: boolean): variant; |
|
procedure RefreshLayout; |
|
function ReSort: boolean; |
|
function ChangeSort(const NewSortFieldName: string; NewSortDesc: boolean): boolean; |
|
function ChangeSortEx(const NewSortFieldName, NewSortDirections: string): boolean; |
|
function PosInSortField(const FieldName: string): integer; |
|
function GetSortDirection(const FieldName: string): boolean; |
|
function SortFieldNamesArr: TSortFieldNames; |
|
function SortDirectionsArr: TSortDirections; |
|
procedure SetColumnWidth(ColumnWidth: TColumnWidth; AdditionalSpace: integer = 0); |
|
procedure SetOneColumnWidth(ColumnWidth: TColumnWidth; Column: TColumn; AdditionalSpace: integer = 0); |
|
procedure RestoreColumnsWidth(RestoreVisibility: boolean = true; RestorePosition: boolean = true); |
|
procedure SaveRowPos(SetExUpdateLock: boolean = false); |
|
procedure RestoreRowPos; |
|
function ScrollData(ScrollBy: integer): integer; |
|
procedure SaveResetDatasetEvents(Reason: integer = 0); |
|
procedure RestoreDatasetEvents(Reason: integer = 0); |
|
procedure SetFooterDBGrid(FooterDBGrid: TrDBGrid; const FooterFieldPrefix: string; ShowHSBarMaster, ShowHSBarFooter: boolean); |
|
function GetInplaceEditor: TrDBGridInplaceEditEx; |
|
procedure HideInplaceEditor; |
|
procedure StopUpdate(stop: boolean); |
|
procedure LoadAutoPickList; |
|
function GetFieldNameColumnIndex(const FieldName: string): integer; |
|
function GetLeftCol: integer; |
|
procedure SetLeftCol(ALeftCol: integer); |
|
function GetActiveCellRect: TRect; |
|
procedure DrawBMPInCell(Rect: TRect; Bmp: TBitmap); |
|
procedure ShowMemo(Field: TField); |
|
procedure ShowGraphic(Field: TField); |
|
procedure GetCellParams(Field: TField; AFont: TFont; var Background: TColor; var DataImageDef: TDataImageDef; ActiveRow, Highlight: boolean); virtual; |
|
procedure RefreshCellParamsCond; |
|
function SummaryResults(Fld: TField; Recalculate: boolean = true): TSummaryResults; overload; |
|
function SummaryResults(Column: TColumn; Recalculate: boolean = true): TSummaryResults; overload; |
|
procedure RecalculateSummaryResults(UseCalculatedSummaryForPopup: boolean = false); |
|
function GetTitleText(Column: TColumn): string; |
|
function GetCellValue(Fld: TField; UseDisplayText: boolean = true): string; |
|
function CopyCellData(CopyToClipboard: boolean = true): string; |
|
procedure CopyFieldsData(FieldNames: TStrings; IncludeTitles: boolean = false); |
|
procedure CopyActiveFieldData(IncludeTitles: boolean = false); |
|
procedure CopyActiveRecordData(IncludeTitles: boolean = false; IncludeHidden: boolean = false); |
|
procedure CopyAllData(IncludeTitles: boolean = false; IncludeHidden: boolean = false); |
|
procedure PasteData(AddAsNewRecs: boolean); |
|
function FillCellData(FillUp: boolean = false; SpecificFieldNames: string = ''): boolean; |
|
function GetFieldGroupInfo(Fld: TField): TGroupInfo; |
|
function IsFieldGroupMasterVisible(Fld: TField): boolean; |
|
function IsFieldGroupMasterExpanded(Fld: TField): boolean; |
|
procedure FixedGroupedCol(SwitchGroupOn: boolean; RestoreDefaults: boolean = false); |
|
procedure CollapseGroup(GroupID: integer); overload; |
|
procedure CollapseGroup(Fld: TField); overload; |
|
procedure ExpandGroup(GroupID: integer); overload; |
|
procedure ExpandGroup(Fld: TField); overload; |
|
procedure CollapseAll; |
|
procedure ExpandAll; |
|
procedure ShowFilterDlg(Column: TColumn = nil); deprecated 'Use ShowFunnelFilter instead.'; |
|
procedure ShowFunnelFilter(Column: TColumn = nil); |
|
procedure ShowTextFilter(Column: TColumn = nil); |
|
procedure SetTextFilter(Column: TColumn; FilterText: string; ActivateFilter: boolean = true); |
|
function DefineColumnFilter(FieldName, FilterCondition, TextFilterValue: string; ActivateFilter: boolean = true): boolean; |
|
function GetColumnFilterString: string; |
|
function SetFilterForField(Fld: TField; const FilterString: string; MultiFieldFilter: boolean; SetFilter: boolean = true; ShowError: boolean = true) : boolean; |
|
procedure ResetFilter; |
|
procedure RefreshFilteredFieldNames; deprecated 'Use FilterChangedNotification instead.'; |
|
procedure FilterChangedNotification; |
|
function DataImages_GetSettings(FieldName: string; ConditionList: TStrings; var AddImageAlign: string): integer; |
|
procedure DataImages_SetSettings(FieldName: string; ConditionList: TStrings; AddImageAlign: string = ''); |
|
function Fields_GetGroupList(GroupList: TStrings): integer; |
|
function Fields_GetGroupDefinition(GroupID: integer): string; |
|
function Fields_GetGroupSettings(GroupDefinition: string; var GroupID: integer; var GroupTitle, ContentCollapsed: string; var TitleFontColor, GroupLineColor: TColor; var GroupLocked: boolean; FieldList: TStrings): boolean; |
|
function Fields_SetGroupSettings(GroupID: integer; GroupTitle, ContentCollapsed: string; TitleFontColor, GroupLineColor: TColor; GroupLocked: boolean; FieldList: TStrings): string; |
|
function Fields_GetLinkType(FieldName: string): TrLinkType; |
|
procedure Fields_SetLinkType(FieldName: string; LinkType: TrLinkType); |
|
function Fields_GetBoolValues(FieldName: string): string; |
|
procedure Fields_SetBoolValues(FieldName: string; BoolValues: string); |
|
function Fields_GetDataBarSettings(FieldName: string; var MinValue, MaxValue: double; var ValueType: TrDataBarText; var ColorFrom, ColorTo: TColor) : boolean; |
|
function Fields_SetDataBarSettings(FieldName: string; MinValue, MaxValue: double; ValueType: TrDataBarText = dbtPercent; ColorFrom: TColor = clSkyBlue; ColorTo: TColor = clWhite): string; |
|
function Fields_GetStatusBarSettings(FieldName: string; var Steps: integer; var BarType: TrStatusBarType; var ColorAll, ColorDone: TColor): boolean; |
|
function Fields_SetStatusBarSettings(FieldName: string; Steps: integer; BarType: TrStatusBarType = sbtProgressBar; ColorAll: TColor = clNone; ColorDone: TColor = clNone): string; |
|
function Title_GetImageIndex(FieldName: string): integer; |
|
procedure Title_SetImageIndex(FieldName: string; ImageIndex: integer); |
|
function Title_GetHint(FieldName: string): string; |
|
procedure Title_SetHint(FieldName: string; Hint: string); |
|
function FooterRow_GetSettings(FieldName: string; var ContentMask: string; var TextAlignment: TAlignmentDefault; var FontStyles: TFontStylesDefault; var FontColor: TColor; var FontSize: integer; AFont: TFont = nil): boolean; |
|
function FooterRow_SetSettings(FieldName: string; ContentMask: string; TextAlignment: TAlignmentDefault = tadDefault; FontStyles: TFontStylesDefault = []; FontColor: TColor = clNone; FontSize: integer = 0): string; |