Frozen zone.
Frozen zone is columns the left part of the grid that remains unchanged when the grid is scrolled to the left or right direction. Unlike the fixed columns the frozen columns can receive the edit focus. To specify the count of the un-scrolling columns you need to set FrozenCols property.
Increment search.
TDBGridEh allows users to accomplish a special "increment" search in grid columns. When user enter in increment search mode, he can type chars and grid will try to locate text in the current column. Use dghIncSearch and dghPreferIncSearch values (OptionsEh property) to customize increment search in the grid. dghIncSearch value allows to perform incremental search in grid. At run time you can use next keys for incremental searching:
If dghIncSearch in OptionsEh and column is read only then grid will enter in increment search mode automatically after first key press and will return to normal mode after 1.5 sec. dghPreferIncSearch value determines that the grid will set increment search mode automatically after first key press instead of cell editing.
Multiselect.
TDBGridEh allows to select records, columns and rectangle areas for following operations above the selected area.
To customize multiselecting you can use next properties:
dgMultiSelect in Options property |
Specifies whether the multiselect is allowed. |
dghClearSelection in OptionsEh property |
Specifies whether the selection will be cleared after user move to the next cell. |
EditActions property |
Specifies actions which user can execute above the selection (Copy,Cut,Delete,Paste,SelectAll). |
AllowedSelections property |
Specifies the types of selections that is allowed to do (Rows, Columns, Rectangle area, All). |
Selection property |
Specifies a current multiselection state, selected records, columns or rectangle area and it has properties and functions to access them. |
Save and restore grid and columns layout to/from registry or ini file.
TDBGridEh have set of routines to save and restore grid and columns layout to/from registry or Ini file:
RestoreColumnsLayout |
Restore Columns Order , Width , SortMarker from registry. |
RestoreColumnsLayoutIni |
Restore Columns Order , Width , SortMarker from the ini file. |
RestoreGridLayout |
Restore Columns Order, Width, Visibility, SortMarker, Sortmarked index and/or row height from registry. |
RestoreGridLayoutIni |
Restore Columns Order, Width, Visibility, SortMarker, Sortmarked index and/or row height from the Ini file. |
SaveColumnsLayout |
Save Columns Order, Width, SortMarker in registry. |
SaveColumnsLayoutIni |
Save Columns Order, Width, SortMarker in the ini file. |
SaveGridLayout |
Save Columns Order, Width, Visibility, SortMarker, Sortmarked index and row height in registry. |
SaveGridLayoutIni |
Save Columns Order, Width, Visibility, SortMarker, Sortmarked index and row height in the Ini file. |
TDBGridEh allows you to "black out" grid while loading data. This allows you to show the user that a melon time DataSet loads data from the server. Grid in the dark makes a smooth transition from the standard picture to a darkened and back. Use StartLoadingStatus FinishLoadingStatus methods to display the status of downloading and reset it back respectively.You can call methods that reload the data in DataSet between calls to these methods.
StartLoadingStatus and FinishLoadingStatus procedures have the following parameters:
procedure StartLoadingStatus( const LoadingCaption : String = ''; // Text for Downloading status RenderDuration: Integer = -1 // Duration of the transition state ); procedure FinishLoadingStatus( RenderDuration: Integer = -1 // Duration of the transition state );
Copyright (c) 1998-2013. All rights reserved.
|
What do you think about this topic? Send feedback!
|