GridView Unbound Mode
The Kettic GridView component provides an Unbound Mode to prevent content generation from a data source. The Unbound Mode of GridView requires users to add and remove the grid columns and rows by using the provided C# API or the Kettic GridView user interface at design time. Furthermore, it is possible to create a grid which is like spreadsheet with empty rows and columns for end users entering data. In this mode, we can create unbound grids through setting the number of desired rows to RowCount property, using Cells collection and Rows collection to create grids and filling data to them.
Create Unbound Grid with Empty Data in C#
To create unbound mode grids rows and columns without any data which will be entered by users, we can follow the simple steps as below.
Add Rows via Cells Collection in C#
The C# code below demonstrates how to add rows through Cells collection by creating columns, entering data for the cells in the grid row, and specifying the cell index and column name.
Add Rows via Rows Collection in C#
The C# code below shows how to add data through Rows collection by using the Add method of the Rows collection.
Create Hierarchical Grid in Unbound Mode
To create hierarchical grid in unbound mode in C#, we can use the way that is similar to create hierarchical grid in bound mode. The differences are to set unbound mode itself and create columns first, and then set up the relation to hierarchical grid and load the data. The following are the C# code for creating hierarchical grid in unbound mode. | ![]() 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 MenuConditional Custom Context MenuModify Default Context MenuGridView - Populating with DataData BindingBinding to Array and ArrayListBinding to Generic ListBinding to Binding ListBinding to DataTable / DataSetBinding to DataReaderBinding to Sub ObjectsBinding to XMLUnbound ModeUpdate DatabaseGridView - Hierarchical GridGridView - SelectionGridView - ScrollingGridView - SortingGridView - GroupingGridView - FilteringGridView - Expression EditorInsert/ Update/ Delete RecordsGridView - View DefinitionGridView - Exporting DataStyling and AppearanceGridView - LocalizationSave and Load LayoutGridView - Print SupportWinForms 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 |