Column Groups View and HTML View for GridView
With the view definition, the Kettic GridView allows the users to create column groups view and HTML view for the data in grid. A single column group is able to hold any number of subgroups or rows in grid columns. However, the HTML view does not means that the grid data can be rendering in html. The HTML view allows the users to use an existing html table and apply the html code in Kettic GridView. This design save much time of the users and just need modify the cell text to the desired column.
How to Create Column Groups View in C#
The sample below shows that how create groups view from column. And the grid is bound to the Customers table from the database. C# code for creating groups for columns in grid
C# code for adding rows to groups in grid
Finally, change the ViewDefinitions property of Kettic GridView to the ViewDefinition that has just been created.
How to Create HTML View in C#
The GridView allows the users to apply an HTML view to their grid view data. The HTML view requires the HTMLViewDefinition being instantiated and added to the desired row and cells in grid.
C# code for adding rows and cells in grid
The GridView allows the users to add rows and column spanning functionality like in html table by using the HtmlViewDefinition. The functionality is able to enable the cells to span more than one columns or rows. C# code for setting column spans in grid
C# code for setting row spans in grid
C# code for setting row height in grid
|
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 ControlGridView - Get Started in C#GridView - PropertiesGridView - ColumnGridView - RowGridView - CellsGridView - EditorsGridView - Context MenuGridView - Populating with DataGridView - Hierarchical GridGridView - SelectionGridView - ScrollingGridView - SortingGridView - GroupingGridView - FilteringGridView - Expression EditorInsert/ Update/ Delete RecordsGridView - View DefinitionTableColumn GroupGridView - Exporting DataExport to ExcelExport Data in a Group to ExcelExport to CSVExport to HTMLExport to PDFStyling and AppearanceThemeImageAlternating Row ColorGridView - LocalizationSave and Load LayoutGridView - Print SupportPrint StylePrint EventsWinForms 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 ControlWinForms 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 |