Grid View
Column Layout
Grid Views offer numerous column layout options so you can deliver a seamless and cohesive experience to your end-users.
- Customizable Column Width
End-users can resize columns by dragging their rightmost edges. You can prohibit column sizing for the entire View or for each individiual column. You can also specify the minimum allowed width for a given column.
- Auto Column Width
The Auto-Width feature ensures that the total column width always matches the View's width. Whether you resize the entire grid control or individual columns within it, Auto-Width guarantees to maintain proportional spacing.
- Fixed Column Width
The XtraGrid allows you to specify a constant width for a given column. End-users will still be able to resize the column, but the column's width will not change when enabling or disabling the Auto-Width feature or when the grid control is resized. This capability can be quite useful for columns that display glyphs or buttons.
- Customizable Column Visibility and Display Order
End-users can easily customize column order by dragging column headers within the column header panel. Dragging a column header outside of the header panel hides the column. By using the Column Customization window, end-users can display any hidden column via drag and drop.
- Best Fit
Double-clicking a column's rightmost edge forces a column to resize its width so that all values within the column are fully displayed without truncation. Best Fit can be applied to all columns at the same time via a context menu. When automatic column width is enabled, all columns are resized proportionally to properly display their content.
- Fixed Columns
You can anchor one or more columns to a View's left or right edge, which ensures that these columns are always visible regardless of horizontal scrolling.

Row Layout
To help you display data in a more readable and manageable format and allow end-users runtime display flexibility, the XtraGrid provides numerous row height and row interval customization options, including:
- Customizable Row Height
By default, row height is calculated automatically to fit a single line of text. You can specify a custom row height via the View's RowHeight property.
- Automatic Row Height Calculation
Grid Views can calculate row height automatically to fully display row data regardless of column width.
- Manual Row Height Calculation
You can implement custom row height calculations by handling a specially designed event.
- End-User Row Resizing
By changing a single option, end-users can resize rows by dragging their bottom-most edge.
- Row Separators
You can create intervals between data rows by assigning the appropriate value to the View's RowSeparatorHeight property.

Preview Sections
Grid Views allow you to display MS Outlook style preview sections under each data row. These regions provide a perfect way in which to display large memo fields:
- Displaying Memo Field Values
To display a text field's values within the preview section, you must enable the preview section and specify the desired field name to display within it. This is done via the View's OptionsView.ShowPreview and PreviewFieldName properties.
- Customizable Preview Height
You can specify the number of lines used to display preview sections.
- Custom Preview Content
You can supply custom preview content via the specially designed CalcPreviewText event. If you need to display non-textual information within the preview section (such as a combination of text and images), you can use manual painting to easily achieve your business objectives.
- Automatic and Manual Preview Height Calculation
By changing a single option, the XtraGrid can automatically calculate the number of lines required to fully display the contents of its preview sections. Moreover, you can handle a single event to calculate the required height of the preview sections manually and so provide different heights for different rows. This can be quite useful if you want to manually render preview sections via custom draw.
- Customizable Preview Indentation
You can insert an indentation within the preview section with a single property setting.

Cell Merging
You can enhance data readability by using the automatic cell merging feature of the XtraGrid. When enabled, neighboring column cells that have identical values are merged into a single cell. If a column is sorted, cell merging has the effect of grouping data - the number of cells within the column will match the number of unique values it holds.
- You can apply cell merging to the entire View or to individual columns.
-
You can provide a custom algorithm to determine which cells are to be merged. For instance, you can merge cells that hold numeric values with the same sign. To implement custom cell merging, you need to handle the specially designed CellMerge event.

Navigation
The following navigation features are available to you and your end-users:
- Incremental Searching
If enabled, your users can instantly locate any information displayed within individual columns without the need to scroll the entire contents of the grid.
- Two Unique Scrollbar Feedback Options
You can either allow users to scroll the View when dragging the scrollbar's thumb or to scroll the View only when the scrollbar thumb is released. Data scrolling mode can be specified individually for the horizontal and vertical scrollbars.
- Vertical Scrolling Tooltip
If live scrolling is disabled for the vertical scrollbar, you can enable the vertical scrolling tooltip. This tooltip displays the appropriate target field value when end-users drag the scrollbar's thumb.
- Sticky Scroll Wheel
End-users can click the mouse wheel and move the pointer in the desired direction to scroll a given View. (Screen Shot)

|