With the C1Studio installer, you get FlexGrid samples that help you understand the implementation of the product. The C# and VB samples are available at the default installation folder:
Documents\ComponentOne Samples\WPF\C1.WPF.FlexGrid\
The C# samples are available in CS folder at the default installation location.
Sample | Description |
CheckBoxes | This sample demonstrates how you can use a custom CellFactory to display check boxes in unbound grids. |
CollectionViewFilter | This sample demonstrates an easy way to create ICollectionView filters based on string expressions. |
ColumnFilter | This sample demonstrates the use of C1FlexGridFilter extension class to implement column filters in FlexGrid. |
ColumnFooters | This sample demonstrates adding column footer cells that remain visible when the user scrolls FlexGrid vertically. |
ColumnPicker | This sample demonstrates how to implement a column picker context menu in the FlexGrid. |
ComboBox | This sample demonstrates how to bind a FlexGrid column using a CellEditingTemplate with a ComboBox. |
ConditionalFormatting | This sample demonstrates how to implement conditional formatting in FlexGrid. |
CustomColumns | This sample demonstrates how to combine custom columns with regular bound columns. |
CustomMerging | This sample demonstrates how to implement merging logic to create a TV-guide display. |
CustomTypeDescriptor | This sample demonstrates support for ICustomTypeDescriptor interface in FlexGrid. |
DataAttributes | This sample demonstrates how FlexGrid supports data attributes defined in the System.ComponentModel.DataAnnotations namespace. |
DragCells | This sample demonstrates performing cell drag and drop operation within FlexGrid. |
DynamicConditionalFormatting | This sample demonstrates applying conditional formatting to a grid based on dynamic value ranges. |
DynamicImages | This sample demonstrates how to use custom cell factory to implement cells with dynamic images. |
ExcelBook | This sample demonstrates various Excel-like features in FlexGrid. |
ExcelDragDrop | This sample demonstrates Excel-style drag-and-drop feature in FlexGrid. |
ExcelExport | This sample demonstrates exporting FlexGrid to Excel using C1Excel. |
ExcelGrid | This sample demonstrates how to achieve an Excel-like look and feel in FlexGrid. |
ExcelStyleMerge | This sample demonstrates Excel-style merging with a custom CellFactory. |
ExtendLastColumn | This sample demonstrates how to implement ExtendLastCol functionality in the FlexGrid. |
FilterRow | This sample demonstrates adding a FilterRow to FlexGrid. |
Financial | This sample demonstrates how to display a simulated live data feed of stock quotes for over 3,000 companies. |
FlexGridLocalization | This sample demonstrates localizing FlexGrid filter to different languages. |
FlexGridSamples | This sample demonstrates specific features such as grouping, filtering, editing, unbound mode, etc. in FlexGrid. |
GapAnalysis | This sample demonstrates hierarchical, form-style and traditional features in FlexGrid. |
GridToolTips | This sample demonstrates how to use hit testing to add cell-specific tooltips in FlexGrid. |
GridTreeView | This sample demonstrates how to implement a bound hierarchical TreeView in FlexGrid. |
GroupAggregates | This sample demonstrates how to display dynamic aggregates in group rows. |
GroupPanel | This sample demonstrates custom grouping in FlexGrid through FlexGridGroupPanel control. |
HeaderTooltips | This sample demonstrates how to attach tooltips to column headers. |
HitTestTemplate | This sample demonstrates usage of the HitTest method which gets information about the grid at any given location. |
ImageColumnTemplate | This sample demonstrates how to display images in a bound grid column. |
Invalidate | This sample demonstrates how to use the Invalidate method to update cells dynamically. |
LabResults | This sample demonstrates how to build grouped, filtered views of data in an MVVM pattern. |
MultiColumnCombo | This sample demonstrates how to implement a multi-column combo box using FlexGrid. |
MultiGridPdf | This sample demonstrates creating a PDF document that contains multiple FlexGrid controls. |
MultiGridPrinting | This sample demonstrates printing multiple grids into a single document. |
OData | This sample demonstrates using OData data sources in WPF applications. |
PrintingWPF | This sample demonstrates printing features of FlexGrid control. |
SalesAnalysis | This sample demonstrates using FlexGrid and Chart controls in a WPF business application. |
ScrollBarStyles | This sample demonstrates customizing the appearance of scrollbars within FlexGrid. |
TraditionalIndexing | This sample demonstrates how to emulate traditional indexing method used in FlexGrid for WinForms. |
TreeFactory | This sample demonstrates creating a Tree with connector lines using a custom cell factory. |
UnboundCellFactory | This sample demonstrates using a custom CellFactory to create custom cells in an unbound FlexGrid. |
UnboundCellFactoryWPF | This sample demonstrates creating custom cells in an unbound FlexGrid. |
UnboundConditionalformatting | This sample demonstrates implementing conditional formatting in unbound grids. |
Validation | This sample demonstrates how FlexGrid supports validation when the ShowErrors property is set to true. |
VerticalHeaders | This sample demonstrates how to use CellFactory to render column headers in vertical direction. |
The Visual Basic samples are available in VB folder at the default installation location.
Samples | Description |
CheckBoxes | This sample demonstrates how you can use a custom CellFactory to display check boxes in unbound grids. |
CollectionViewFilter | This sample demonstrates an easy way to create ICollectionView filters based on string expressions. |
CustomTypeDescriptor | This sample demonstrates support for ICustomTypeDescriptor interface in FlexGrid. |
ExcelGrid | This sample demonstrates how to achieve an Excel-like look and feel in FlexGrid. |
FilterRow | This sample demonstrates adding a FilterRow to FlexGrid. |
Financial | This sample demonstrates how to display a simulated live data feed of stock quotes for over 3,000 companies. |
ImageColumnTemplate | This sample demonstrates how to display images in a bound grid column. |
Invalidate | This sample demonstrates how to use the Invalidate method to update cells dynamically. |
PrintingWPF | This sample demonstrates printing features of FlexGrid control. |
UnboundCellFactoryWPF | This sample demonstrates creating custom cells in an unbound FlexGrid. |
The following sections walk you through two FlexGrid samples namely iTunes and Financial. The iTunes sample shows implementing custom cells to change the look and feel of the grid. This sample also demonstrate how to customize group rows to display subtotals on each cell, and how to implement a search box using the ICollectionView filter feature. The Financial sample shows a simulated live data feed of stock quotes for over 3,000 companies.