Xtra Grid New Features
Xtra Grid New Features
Xtra Grid New Features
Only the main features and major functionality changes are listed below.
Printing and Exporting Only Selected Rows. Advanced Incremental Filtering in Lookup Editors - If text editing is enabled in a GridLookUpEdit control, an end-user can search for rows by typing text in the edit box. The new PopupFilterMode property specifies how the search is performed. By default, the control searches for the rows that contain the entered text at any position in the row's value. You can also force the control to search for the rows whose values begin with the entered text. In Grid Views, a column's settings have been extended by introducing the maximum width property. Assume that the auto-width feature is enabled for a Grid View. Increasing the grid's width proportionally resizes all the columns. If you want to retain a narrow width for columns with little content, you can now specify their maximum width. With this version, copying cells to the clipboard also copies column captions to the clipboard, allowing easy identification of cell data.
When an end-user navigates through grid cells using the TAB key, all row cells are processed sequentially. However, in specific situations, when entering values, you may need to skip some cells. To do this, you can use the new TabStop option to prevent cells from being focused by the TAB key. This will allow your end-users to navigate only through predefined columns, while skipping others using the TAB key. By default, the grid displays detail data compactly, without extra indents. However, with the new DetailVerticalIndent property, you can implement your own settings for vertical detail padding. When the grid is bound to a data source, columns are created for all fields in the data source. By default, the Caption properties of columns are set to empty strings. In this instance, the grid automatically generates humanreadable column captions from field names, and displays them in column headers. For instance, if a field name is "CustomerName", the caption will be "Customer Name". You can now enable automatic summary calculation for columns, displaying TimeSpan values. No additional code is required.
Miscellaneous Added the OptionsColumn.AllowShowHide property that allows columns to be hidden even if the AllowMove property is set to false Added the ability to identify the original exception inside the InvalidValue event Added the OptionsCustomization.AllowQuickHideColumns property, to disable column hiding by dragging Added a SetFocusedRowCellValue overload that accepts a field name as a parameter
Added the AllowBandResizing and AllowBandMoving properties Added the RowClick and RowCellClick events Added the AddVisible methods to create visible columns Added the ShowGroupExpandCollapseButton property to hide group expand buttons Added the GridView.GetFocusedDataSourceRowIndex method Added the ColumnPositionChanged event Added the ColumnView.OptionsBehavior.AllowDeleteRows and AllowAddRows options, to disable the embedded navigators Append and Delete buttons Added EditorShowMode.MouseDownFocused mode, where an in-place editor is shown after two clicks on a cell Apply appearance settings supplied via the RowStyle event when the XtraGrid is being printed A Bands' MinWidth in BandedGridView are taken into account when columns are resized Changed the column auto-scroll delay interval that is used before dragand-drop is initiated Column header context menu - added the "Hide column" command Custom display text supplied via the CustomColumnDisplayText event is used for incremental search Designer Fields are sorted in alphabetical order Dragging a column header outside of a control will always indicate 'X' Design-time - Repository item list is now sorted Export to XLS Added the RepositoryItem.ExportMode property, that specifies whether values of a particular column are exported as display text or edit value Filter MRU list in filter panel Items can be removed from the list by pressing DELETE Focus the last visible record when PAGE DOWN is pressed GridLookupEdit - Access to the DataSource and DataMember properties via Smart Tags in the Designer GridView.CalcHitInfo now allows you to detect a detail tab under the mouse pointer Hide the footer cell beneath the indicator Hints over footer cells Filter Custom Dialog form Editors are painted in a different color Made the CardView.CardCaptionFormat property ('Record N {0}') localizable New Item Row is saved when clicking the empty grid area
Option UseAdvVertNavigation is applied to the New Item Row and Auto Filter Row Printing - Allow printing (exporting) only selected rows and their details Printing Added the GridView.PrintRow event to insert custom page breaks via the PrintingSystem.InsertPageBreak method RowCellStyle event Added the CellValue event parameter Save/restore the FormatConditions property when the layout is saved/restored Save/restore the GroupSummarySortInfo property with the layout Support for using the word wrap and text trimming features together The (Show All) item in the For CheckedList filter dropdowns selects all columns instead of clearing the filter for the column Values of the summaries applied by end-users via context menus are formatted according to the Column.DisplayFormat
Layout View Features Runtime layout customization - This feature allows end-users to easily customize the field layout in cards at runtime, using drag-and-drop New layout elements - Tabbed interface, static labels, separators and icons in fields and groups.
Stretching Cards to View - Cards can be horizontally or vertically stretched to completely fill the View's width or height, allowing you to emulate detail entry forms. Other Enhancements
Filter Drop-Down List with Check Boxes - The grid control now supports checked filter drop-down lists, which allow your end-users to filter columns against multiple values on the fly. LINQ Server mode - Server mode supported by our grid controls that allows you to efficiently work with large amounts of data. Previously, server mode was supported only for XPO datasources out of the box. Now, any LINQ query provider is also supported. New CheckedComboBoxEdit control can be used in-place within the grid, for representing and editing a set of Boolean options or bit fields in a popup window.
source implements this interface, the grid control bound to this data source will display error icons within cells. Multiple error icon types are supported.
New Controls The GridLookUpEdit control - a successor to the LookUpEdit editor provides lookup functionality using an embedded XtraGrid control. The control can be used standalone or in-place. The main benefit of the GridLookUpEdit control is in the ability to use the advanced features of the embedded XtraGrid control to represent data. All Views Specifics Controlling a row's visibility - The ColumnView.CustomRowFilter event allows you to control a row's visibility within a View, regardless of the View's filter. Browsing data without immediate editor activation - Set the ColumnViewOptionsBehavior.EditorShowMode property to EditorShowMode.Click to activate this browsing mode. An editor is not invoked on the first click within a cell, but is activated on a subsequent click. Full support for scrolling using the Mouse Wheel - An end-user can press a
mouse wheel over a View and then move the pointer in the direction he/she wants to scroll. The View's contents will scrolled automatically. Support for glyphs with alpha-channels - It's possible to assign images with alpha-channels to column and band headers and in card captions. The look of a grid's elements will be much smoother when using such images. Use the ImageCollection component instead of the standard System.Windows.Forms.ImageList, to store images with transparency. GridView (and Descendants) Specifics Cell Selection (supported in grid and banded grid Views) - In this selection mode, end-users are able to select individual cells and blocks of cells (compared with standard multi-selection mode, when only entire rows can be selected). Filter Buttons as Smart Tags - The GridOptionsView.HeaderFilterButtonShowMode property allows you to specify how filter buttons are displayed: as regular buttons or as smart tags that are only made visible when a column header is hovered over. Support for translucent colors for focused and selected rows.