/syncfusion-winforms:syncfusion-winforms-listviewfrom Syncfusion WinForms Controls
Guide for implementing Syncfusion SfListView control in Windows Forms for creating list-based UIs with data binding, grouping, sorting, filtering, and selection capabilities. Use when building applications with item collections, Explorer views, contact lists, or product catalogs with sortable/filterable lists. Covers data binding, checkbox lists, grouped lists, filtered lists, and rich data display for list interfaces.
Ships in Syncfusion WinForms Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guide for implementing Syncfusion® Windows Forms ListView (SfListView) — a high-performance list control for creating rich list-based user interfaces with data binding, grouping, sorting, filtering, selection modes, checkbox selection, and extensive customization options.
Use this skill when you need to:
This skill covers complete ListView implementation including setup, data binding, selection, data operations, customization, and advanced features.
The SfListView control is a high-performance list view control that provides:
SfListView
├── Header View (optional) - Top content area
├── Groups - Collapsible item groups
│ ├── Group Header - Group title and expand/collapse
│ └── Items - Data items in group
├── Items - Flat list of data-bound items
└── Footer View (optional) - Bottom content area
📄 Read: references/getting-started.md
📄 Read: references/data-binding.md
📄 Read: references/selection.md
SelectionMode (None, One, MultiSimple, MultiExtended)
SelectedItem and SelectedItems properties
SelectedIndex and SelectedIndices
SelectionChanged event
Programmatic selection
Selection appearance customization
📄 Read: references/checkbox-selection.md
CheckBoxSelectionMode property
CheckedItems collection
CheckedIndices property
ItemChecking and ItemChecked events
Select all functionality
Recursive checking in grouped lists
Checkbox appearance customization
📄 Read: references/data-operations.md
📄 Read: references/appearance.md
📄 Read: references/item-sizing-headers.md
📄 Read: references/advanced-features.md
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Syncfusion.WinForms.ListView;
namespace ListViewDemo
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
InitializeListView();
}
private void InitializeListView()
{
// Create and configure ListView
SfListView listView = new SfListView();
listView.Dock = DockStyle.Fill;
listView.Size = new Size(400, 500);
// Set data source
listView.DataSource = GetCountryData();
listView.DisplayMember = "CountryName";
// Enable selection
listView.SelectionMode = Syncfusion.WinForms.ListView.Enums.SelectionMode.One;
listView.SelectionChanged += ListView_SelectionChanged;
// Add to form
this.Controls.Add(listView);
}
private List<CountryInfo> GetCountryData()
{
return new List<CountryInfo>
{
new CountryInfo { CountryName = "United States", Continent = "North America" },
new CountryInfo { CountryName = "Canada", Continent = "North America" },
new CountryInfo { CountryName = "Germany", Continent = "Europe" },
new CountryInfo { CountryName = "Japan", Continent = "Asia" },
new CountryInfo { CountryName = "Australia", Continent = "Oceania" }
};
}
private void ListView_SelectionChanged(object sender, EventArgs e)
{
if (sender is SfListView listView && listView.SelectedItem != null)
{
var selected = listView.SelectedItem as CountryInfo;
MessageBox.Show($"Selected: {selected.CountryName}");
}
}
}
public class CountryInfo
{
public string CountryName { get; set; }
public string Continent { get; set; }
}
}
// Create ListView
SfListView listView = new SfListView();
listView.DataSource = GetCountryData();
listView.DisplayMember = "CountryName";
// Add grouping by continent
listView.View.GroupDescriptors.Add(new GroupDescriptor()
{
PropertyName = "Continent"
});
// Add sorting by country name
listView.View.SortDescriptors.Add(new SortDescriptor()
{
PropertyName = "CountryName",
Direction = Syncfusion.Data.ListSortDirection.Ascending
});
// Enable checkbox mode
listView.CheckBoxMode = CheckBoxMode.Default;
// Handle checked items changes
listView.CheckStateChanged += (s, e) =>
{
MessageBox.Show($"Checked items: {listView.CheckedItems.Count}");
};
// Add Select All button
Button selectAllBtn = new Button { Text = "Select All" };
selectAllBtn.Click += (s, e) =>
{
// Check all items
for (int i = 0; i < listView.View.Items.Count; i++)
{
listView.SetItemCheckState(i, CheckState.Checked);
}
};
// Add TextBox for search
TextBox searchBox = new TextBox();
searchBox.TextChanged += (s, e) =>
{
string searchText = searchBox.Text.ToLower();
// Apply filter
listView.View.Filter = item =>
{
if (item is CountryInfo country)
{
return country.CountryName.ToLower().Contains(searchText);
}
return false;
};
// Refresh view
listView.View.RefreshFilter();
};
// Customize item appearance
listView.Style.ItemStyle.BackColor = Color.White;
listView.Style.ItemStyle.HoverBackColor = Color.LightBlue;
listView.Style.ItemStyle.SelectedItemBackColor = Color.Blue;
listView.Style.ItemStyle.SelectedItemForeColor = Color.White;
listView.Style.ItemStyle.Font = new Font("Segoe UI", 10f);
// Customize group headers
listView.Style.GroupHeaderStyle.BackColor = Color.LightGray;
listView.Style.GroupHeaderStyle.ForeColor = Color.Black;
listView.Style.GroupHeaderStyle.Font = new Font("Segoe UI", 10f, FontStyle.Bold);
using System.Collections.ObjectModel;
using System.ComponentModel;
public class CountryViewModel : INotifyPropertyChanged
{
private ObservableCollection<CountryInfo> countries;
public ObservableCollection<CountryInfo> Countries
{
get { return countries; }
set
{
countries = value;
OnPropertyChanged(nameof(Countries));
}
}
public CountryViewModel()
{
Countries = new ObservableCollection<CountryInfo>
{
new CountryInfo { CountryName = "USA", Continent = "North America" }
};
}
// Add item - ListView updates automatically
public void AddCountry(CountryInfo country)
{
Countries.Add(country);
}
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
// Bind to ListView
var viewModel = new CountryViewModel();
listView.DataSource = viewModel.Countries;
listView.DisplayMember = "CountryName";
| Property | Type | Description |
|---|---|---|
| DataSource | object | Gets/sets the data source (IEnumerable) |
| DisplayMember | string | Property name to display in items |
| ValueMember | string | Property name for item values |
| SelectedItem | object | Currently selected item |
| SelectedItems | List | Collection of selected items |
| CheckedItems | List | Collection of checked items |
| Property | Type | Description |
|---|---|---|
| SelectionMode | SelectionMode | None, One, MultiSimple, MultiExtended |
| SelectedIndex | int | Index of selected item |
| SelectedIndices | List | Indices of selected items |
| AllowMultiSelection | bool | Enable multiple selection |
| Property | Type | Description |
|---|---|---|
| CheckBoxSelectionMode | CheckBoxSelectionMode | None, Default, SelectAll |
| CheckedIndices | List | Indices of checked items |
| AllowRecursiveChecking | bool | Enable recursive checking in groups |
| ShowCheckBoxes | bool | Show/hide checkboxes |
| Property | Type | Description |
|---|---|---|
| Style | ListViewStyle | Overall style configuration |
| ItemHeight | int | Height of each item |
| GroupHeaderHeight | int | Height of group headers |
| AutoFitMode | AutoFitMode | None, Height, DynamicHeight |
| Property | Type | Description |
|---|---|---|
| View | DataView | Access to grouping, sorting, filtering |
| LiveDataUpdateMode | LiveDataUpdateMode | AllowDataShaping, AllowSummary, Default |
| Event | Description |
|---|---|
| SelectionChanged | Fired when selection changes |
| ItemChecking | Fired while an item is being checked (cancelable) |
| ItemChecked | Fired after an item's checked state has changed |
| ItemsSourceChanged | Fired when DataSource changes |
| DrawItem | Custom drawing for items |
| QueryItemHeight | Dynamic item height calculation |
Display contacts with grouping by first letter, search functionality, and selection for actions.
Show products with filtering by category, sorting by price, and checkbox selection for cart.
Create file/folder lists with icons, grouping by type, sorting by name/date/size.
Display tasks with checkbox completion, grouping by priority/status, filtering by date.
Show email messages with selection, sorting by date, filtering by read/unread status.
Display orders with grouping by status, sorting by date, selection for details.
Create lists of settings with checkbox selection for enable/disable features.
Use ListView for simpler list-based data display without complex grid features.
Data Binding
Performance
Selection
Grouping and Filtering
Customization
Accessibility
CheckBoxSelectionMode is not NoneAllowRecursiveChecking setting for grouped listsItemChecking / ItemChecked events, not SelectionChangedCheckedItems vs SelectedItems distinctionNext Steps: Navigate to specific reference documents based on your implementation needs. Start with getting-started.md for initial setup, then explore data binding, selection, and data operations as needed.
references/advanced-features.md (opens in a new tab)references/appearance.md (opens in a new tab)references/checkbox-selection.md (opens in a new tab)references/data-binding.md (opens in a new tab)references/data-operations.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/item-sizing-headers.md (opens in a new tab)references/selection.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winforms113 skills in this plugin
/syncfusion-winforms-ai-assistviewGuide for implementing Syncfusion Windows Forms AI AssistView (SfAIAssistView) for building conversational AI interfaces in desktop applications. Use this when creating chat interfaces, AI assistants, or chatbots with Windows Forms. Supports OpenAI and Azure OpenAI integration, typing indicators, chat suggestions, message bubbles, custom views, input toolbar with attachments, response toolbar actions, and stop responding for interactive messaging experiences./syncfusion-winforms-autocompleteGuides implementation of the Syncfusion WinForms AutoComplete control for text input with auto-suggestion functionality. Use when users want to add autocomplete textboxes, implement auto-suggestion features, create search boxes with suggestions, enable URL/email autocomplete, or build type-ahead search functionality in Windows desktop applications. Covers data binding, customization, filtering, multi-column dropdowns, events, and all AutoComplete-specific features./syncfusion-winforms-autolabelGuides implementation of the Syncfusion WinForms AutoLabel control for automatic label positioning with form controls. Use when users want to add labels that automatically reposition when controls move, create form layouts with paired label-control units, implement complex form designs with FlowLayout, or ensure labels stay synchronized with their associated controls. Covers labeling controls, positioning, spacing, size settings, theming, and events.Other plugins' skills for the same job