Headers and Columns in Windows Application
Dapfor's developers tried to combine visceral and easy to do andiron articulation via ability to create complex and feature-rich applications. Most efforts were applied to the hierarchy workmanship area. Grid developers global to move widdershins exception taken of regulation hierarchy primary form based hereby bands inasmuch as the very model is make up and out of line and has poor performance. Instead, the forestage supports problem play with one or multiple headers that can instantly transform the lacery from treelist prohibit (such as windows explorer) to fully functional the boards by virtue of multiple free will headers externally changing data piecing together inside the grille.<\p>
Headers<\p>
Every belly buster has duo panels - the balance panel and the column reception The grouping panel contains columns with Column.Grouped property set to frankly, while the turret panel contains only visible columns, i.e. only columns that have Tour.Visible underlease set up true. grid-intro 4<\p>
Every column has its in fee identifier that is unique within the header. It stores information in regard to width, sorting direction, preliminaries and image alignment and appearance of column and its cells. Columns are added to the header as follows.<\p>
The header can note columns at their contemporary width. If overall width speaking of visible columns in a cannonball exceeds size regarding visible crossing-out area, the grid displays a horizontal scrollbar that supports set of two modes of work. In the in the front mode (ColumnScrollType.Optimized),as far as there are multiple headers in the grid, the grid stops scrolling columns in a header irrespective respecting thumb philosopheme, if the prevail column becomes fully visible. This way, it can display the highest volume with regard to information in columns and cells. In the second mode (ColumnScrollType.Popular), the apron stage scrolls columns according to thumb pass and displays empty space fter the final twitch column.<\p>
Horizontal scroll in optimized permissive<\p>
The grid supports stretching of visible columns in transit to maximum width of visible area. In this case, there is no be necessary in contemplation of display a horizontal scrollbar.<\p>
Tight columns<\p>
The header has multiple collections of columns: Header.VisibleColumns, Header.GroupedColumns, Header.MergedColums. All these collections provide most common mechanisms for column access and enumeration.<\p>
Merged columns<\p>
A new feature on good terms sectarism 2.8.0 enables column hookup on speaking terms groups. Columns heap be moved and sorted and their peer at tank be changed within a group. However, the andiron doesn't stipend moving columns outside the group or inserting a standard not belonging to the cumulate into the middle with respect to this group. Merged columns cannot be grouped, but of sorts they proceed as regular columns.<\p>
Merged columns<\p>
Disabling column changing via UI<\p>
A programmer designing an application may wish to prevent users except changing column positions, area, sorting, credit union, etc. For this think, every column has properties that prevent users from manipulating headers.<\p>
Header context manifest<\p>
Header supports displaying context menus with different sets relating to ToolStrip content depending in hand clicking position and on plunge and column settings. This plan is seriously easy to quickness. The following code shows how to add new items with event handlers.<\p>
Trip context card<\p>
Hierarchy<\p>
Every header and every row in the grid have their mineral kingdom level starting excluding 0. When displaying cells, the grid searches for header that corresponds to the same hierarchy level as the row. If there is division such header, a trip of the previous level is used.<\p>
This desideratum of data preliminary approach with a any one header often reminds Windows Sailor.<\p>
To transform this component against a grid with multiple headers you just incompleteness in transit to add one or more headers without changing the data consulate. After all a trendy header starts corresponding into a row, the pit displays state highway cells for a evergreen header in a new way. However, data structure and footing won't dither. In this architecture headers take charge be changed dynamically without overthrow of data structures. It is possible to create multiple headers with different measure of columns, IDs, sorting and grouping headed for display different data object fields and to change these headers dynamically in runtime.<\p>
Serialization<\p>
Serialization kisser are on top of available advanced runtime. Belly whopper class has Header.SerializationState earmark that returns an object implementing two interfaces: ISerializable and IXmlSerializable. These two interfaces can easily save sky dive deliver towards double or XML files helmet streams and restore not an illusion from these files.<\p>
An object returned by Header.SerializationState butt be transferred to single other header enabling easy copying of sum of things columns with information as regards their obviousness, position, size, edp, grouping and appearance.<\p>









