LocalDataSourceProvider of KetticPivotGrid Control in C#.NET
KetticPivotGrid control is capable of the data provider, LocalDataSourceProvider, which can also be used by the KetticPivotFieldList. This local data source provider allows the PivotGrid control access the data source locally, like an IList of instances in a C# classes defined by the users. Furthermore, we are able to use all the collections that implements IEnumerable interface as a LocalDataSourceProvider. In this tutorial, we shall go through the way of using the LocalDataSourceProvider in C#.NET.
Create LocalDataSourceProvider for KetticPivotGrid
The C# code snippet below demonstrates how to create a LocalDataSourceProvider for KetticPivotGrid control for Windows Forms. To display any data in KetticPivotGrid, we should set the ItemSource property to a collection implementing IEnumerable interface or a DataTable as the data source.
Add Group Descriptions Collections to LocalDataSourceProvider
KetticPivotGrid WinForms control contains a few different description collections to store data for the LocalDataSourceProvider to display, such as RowGroupDescription, ColumnGroupDescription, AggregateDescriptions, and FilterDescriptions collections.
Apply the DataProvider to KetticPivotGrid
The C# code snippet below shows how to apply the data provider that has been defined to the KetticPivotGrid control in .NET Windows application.
|
UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlPivotGrid - StructurePivotGrid - Property BuilderPivotGrid - Populating with DataDesign Time Data BindingUse DataSource PropertyLocal Source DataUse the AdoMDDataProviderUse XMLA Data ProviderPivotGrid - Layout SettingsPivotGrid - Format AppearancePivotGrid - Binding with ChartPivotGrid - FilteringReport FilterGroup FilterPivotGrid - SortingPivotGrid - Printing SupportPrinting styleCustomizationPivotGrid - DialogsCustomizationWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |