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 Design
WinForms UI Controls