$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
ListView WinForms Control
Create functional user interfaces, display data, group, filter, sort, and customize data items
Home > WinForms UI Controls > User Manual > ListView Control in C#

View Types of ListView Control

Kettic ListView control for Windows Forms provides large flexibilities for developers to customize the control as their needs. It is easy to bind and customize the ListView control to represent and edit list data in their C# Windows Forms applications. For example, the ListView control offers three types of views, SimpleListView, IconView or DetailView, for users to visualize the data as necessary.

How to Customize Views of ListView Control

Kettic ListView .NET Component includes three View Types, ListView, IconsView, and DetailsView, which are the basic views provided by Windows Explorer. However, the Kettic ListView control provides extended functionalities to the views and allows the users to customize the appearance of the ListView as necessary.

List View Type

This ListView view type resembles the appearance of the KetticListControl and uses the engine of the Kettic ListView control. For example, this view type uses the checkboxes, editors, and images from the ListView control. The ListView view type is made of vertical stacked list items.

Icons View Type

This view type will show the list items in icons, which is also the common view provided by Windows Explorer. This Icons view type allows the users to customize the icons direction that will be displayed by using the Orientation property included.

Detail View Type

The detail view type will display the items details in a grid interfaces in multiple data fields. Furthermore, this view type will allows the users to resize the columns by using the ApplyColumnsResize property, reorder columns by using the ApplyColumnReorder, customize the column size, and visualize the columns that will be displayed for users.

How to Customize View Types in C#

To customize the views for ListView control, we need to handle the ChangedViewType event. This event is able to set view specific settings. There are three methods available to handle the event, SetupDetailsView, SetupIconsView, and SetupSimpleListView. In the event handler, simply check the new view and call the corresponding method. The C# code below demonstrate how to handle the view types methods.

private void SetupDetailsView()
{
this.ketticListView1.AllowArbitraryItemHeight = true;
}

private void SetupIconsView()
{
this.ketticListView1.ItemSize = new Size(180, 60);
this.ketticListView1.ItemSpacing = 3;
this.ketticListView1.ApplyArbitraryItemHeight = true;
}

private void SetupSimpleListView()
{
this.ketticListView1.ApplyArbitraryItemHeight = true;
}

void ketticListView1_ChangedViewType(object sender, EventArgs e)
{
switch (ketticListView1.ViewType)
{
case ListViewType.ListView:
SetupSimpleListView();
break;
case ListViewType.IconsView:
SetupIconsView();
break;
case ListViewType.DetailsView:
SetupDetailsView();
break;
}
}
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