Class TrDBGridCustomSorter

Unit

Declaration

type TrDBGridCustomSorter = class(TComponent)

Description

define base Sorter component for dataset sorting; must be used as based class for any other dataset sorter

Hierarchy

  • TComponent
  • TrDBGridCustomSorter

Overview

Methods

Public function DoSort(Sender: TrDBGrid; DataSet: TDataSet; SortFieldNames: TSortFieldNames; SortDirections: TSortDirections): boolean; virtual;
Public procedure DoRefresh(Sender: TrDBGrid; DataSet: TDataSet); virtual;

Properties

Published property GoToFirstAfterSort: boolean read FGoToFirstAfterSort write FGoToFirstAfterSort default false;
Published property GoToFirstAfterRefresh: boolean read FGoToFirstAfterRefresh write FGoToFirstAfterRefresh default false;

Description

Methods

Public function DoSort(Sender: TrDBGrid; DataSet: TDataSet; SortFieldNames: TSortFieldNames; SortDirections: TSortDirections): boolean; virtual;

virtual procedure provide sorting, calls SetSort_CreateIndex to sort dataset

Public procedure DoRefresh(Sender: TrDBGrid; DataSet: TDataSet); virtual;

virtual procedure provide refreshing of dataset, calls DatasetRequery

Properties

Published property GoToFirstAfterSort: boolean read FGoToFirstAfterSort write FGoToFirstAfterSort default false;

define selecting of first record after sorting

Published property GoToFirstAfterRefresh: boolean read FGoToFirstAfterRefresh write FGoToFirstAfterRefresh default false;

define selecting of first record after refresh


Generated by PasDoc 0.15.0.