EHLIBK control information 3

xiaoxiao2021-03-06  90

A. Customized Title Row 1, making complex headline headers can be set to 2 rows of height, and can create a common parent header row for multiple columns. To achieve this effect, you need to deliver the parent title and subtitle in each column title property. If the office supplies include code and names, the specific properties are set as follows: usemultititile = true; titleLines = 2dbGrideh.columns [0]. Title.caption: = 'Office Supplies | Code'; DBGRIDEH.COLUMNS [1] .title.caption: = 'Office Supplies | Name';

3 Automatically switch and do separately. Specific attributes are set as follows: OptionsEh = dghAutoSortMarkingColumn.Title.TitleButton = trueSortMarkedColumns current sort column may be used at run time and add the code in the event ontitleclick column: procedure TForm_Query.DBGridEh1TitleBtnClick (Sender: TObject; ACol:. Integer; Column: TColumneh); VarsortString: String; // Sort sequence begin // Sort with column dobeginif findName = ''.

case Title.SortMarker ofsmNoneEh: beginTitle.SortMarker: = smDownEh; sortstring: = Column.FieldName 'ASC'; end; smDownEh: sortstring: = Column.FieldName 'ASC'; smUpEh: sortstring: = Column.FieldName 'DESC '; end; // Drave Sort TryDataSet.Sort: = SortString // DataSet is the actual data set variable name excend; end; end; remember that the LookUp type field cannot be described above, otherwise the system will prompt the error. B, the summary of the FOOTER region of the Footer area DBGRIDEH component can display the summary bank at the bottom of the table, such as the recording number, column field accumulation and and other information. Set the number of rows displayed at the bottom; then add one or more display columns in the Footers Editor, the display column can be a field value accumulated and, record the number of combiners, field values, or static files, which can be designed Settings in the valueetype property, you can also specify its type by setting FOOTERS [i] .valuety at runtime. Its meaning is shown in the table: the property value fvtsumfvtcountfvtfieldValuefvtstaticTFVTFIELDVALUEFVTSTACTFVTFIELDVALUEFVTSTATICTFVTFIELDVALUEFVTSTATICTFVTFIELDVALUEFVTSTATITEXT Meaning Field Accumulation and Record Documentary Field Value Static Text Remember Set DBGRIDEH.SUMLIST.ACTIVE for TRUE to make a summary plan. It should be noted that, if the display type is not the accumulation of the current column, you need to specify the summary in the fieldName property, and other types have no such requirements.

转载请注明原文地址:https://www.9cbs.com/read-124300.html

New Post(0)