
syncfusion-winforms-listview
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.
- Installs
- 80
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-listview- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads syncfusion-winforms-listview automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Implementing ListView
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.
When to Use This Skill
Use this skill when you need to:
- Create list views with data binding to collections in Windows Forms applications
- Display item collections with grouping, sorting, and filtering capabilities
- Implement item selection with single or multiple selection modes
- Add checkbox selection for multi-item operations
- Build searchable lists with filtering and sorting
- Create grouped lists with expandable/collapsible groups
- Customize item appearance with templates, styles, and themes
- Support accessibility with UIAutomation and keyboard navigation
- Build data-driven UIs similar to file explorers, contact lists, or product catalogs
- Handle large datasets with optimized view recycling
This skill covers complete ListView implementation including setup, data binding, selection, data operations, customization, and advanced features.
Component Overview
The SfListView control is a high-performance list view control that provides:
- Data Binding - Support for IEnumerable data sources with automatic refresh
- Selection Modes - Single, multiple, or none with events
- Checkbox Selection - Multi-select with checkbox, select all, recursive checking
- Grouping - Organize items by property with expandable groups
- Sorting - Ascending/descending sort with custom comparers
- Filtering - Filter items by criteria with live updates
- Item Sizing - Auto-fit or fixed item heights
- Customization - Styles, templates, themes (Office 2016)
- Header/Footer - Custom header and footer views
- Scrollbar Customization - Appearance and behavior
- Localization - Multi-language support
- Accessibility - UIAutomation support for screen readers
Control Structure
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
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
- Assembly deployment and dependencies
- Adding SfListView via designer and code
- Creating data object classes
- Basic data binding with DataSource
- First list view example
Data Binding
📄 Read: references/data-binding.md
- Binding to IEnumerable data sources
- DataSource property configuration
- DisplayMember and ValueMember
- ObservableCollection for live updates
- Refreshing data programmatically
- Data source change handling
Selection
📄 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
Data Operations
📄 Read: references/data-operations.md
- Grouping items by property
- GroupDescriptor configuration
- Sorting items (ascending, descending)
- Custom sort comparers
- Filtering with predicates
- Filter criteria and conditions
- LiveDataUpdateMode for real-time updates
Customization
📄 Read: references/appearance.md
- Style property customization
- ItemStyle and GroupHeaderStyle
- Theme support (Office 2016, etc.)
- Colors, fonts, and borders
- DrawItem event for custom rendering
- Selection colors and focus indicators
📄 Read: references/item-sizing-headers.md
- ItemHeight property
- GroupHeaderHeight property
- AutoFitMode (Height, DynamicHeight)
- Header view customization
- Footer view customization
- Dynamic height calculation
Advanced Features
📄 Read: references/advanced-features.md
- Localization and culture support
- UIAutomation for accessibility
- Scrollbar customization
- Performance optimization techniques
- View recycling strategy
- Memory management
Quick Start Example
Basic ListView with Data Binding
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; }
}
}
Common Patterns
Pattern 1: Grouped and Sorted List
// 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
});
Pattern 2: Checkbox Selection with Select All
// 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);
}
};
Pattern 3: Filtered and Searchable List
// 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();
};
Pattern 4: Custom Item Styling
// 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);
Pattern 5: ObservableCollection with Live Updates
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";
Key Properties
Core Properties
| 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<object> | Collection of selected items |
| CheckedItems | List<object> | Collection of checked items |
Selection Properties
| Property | Type | Description |
|---|---|---|
| SelectionMode | SelectionMode | None, One, MultiSimple, MultiExtended |
| SelectedIndex | int | Index of selected item |
| SelectedIndices | List<int> | Indices of selected items |
| AllowMultiSelection | bool | Enable multiple selection |
Checkbox Properties
| Property | Type | Description |
|---|---|---|
| CheckBoxSelectionMode | CheckBoxSelectionMode | None, Default, SelectAll |
| CheckedIndices | List<int> | Indices of checked items |
| AllowRecursiveChecking | bool | Enable recursive checking in groups |
| ShowCheckBoxes | bool | Show/hide checkboxes |
Appearance Properties
| 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 |
Data Operation Properties
| Property | Type | Description |
|---|---|---|
| View | DataView | Access to grouping, sorting, filtering |
| LiveDataUpdateMode | LiveDataUpdateMode | AllowDataShaping, AllowSummary, Default |
Events
| 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 |
Common Use Cases
1. Contact List Application
Display contacts with grouping by first letter, search functionality, and selection for actions.
2. Product Catalog Browser
Show products with filtering by category, sorting by price, and checkbox selection for cart.
3. File Explorer View
Create file/folder lists with icons, grouping by type, sorting by name/date/size.
4. Task Management Lists
Display tasks with checkbox completion, grouping by priority/status, filtering by date.
5. Email Client Inbox
Show email messages with selection, sorting by date, filtering by read/unread status.
6. Customer Order Lists
Display orders with grouping by status, sorting by date, selection for details.
7. Settings Configuration UI
Create lists of settings with checkbox selection for enable/disable features.
8. Data Grid Alternative
Use ListView for simpler list-based data display without complex grid features.
Related Components
- DataGrid - For tabular data with columns
- TreeView - For hierarchical data structures
- ComboBox - For dropdown selection from list
- CheckedListBox - Simple checkbox list without advanced features
Best Practices
-
Data Binding
- Use ObservableCollection for automatic UI updates
- Implement INotifyPropertyChanged for item property changes
- Set DisplayMember and ValueMember for clarity
-
Performance
- Enable view recycling (enabled by default)
- Use AutoFitMode carefully with large datasets
- Avoid custom DrawItem for simple scenarios
- Use filtering/grouping instead of recreating data source
-
Selection
- Handle SelectionChanged event for user actions
- Use appropriate SelectionMode for use case
- Clear selection when data source changes if needed
-
Grouping and Filtering
- Use View.GroupDescriptors for grouping
- Set View.Filter predicate for filtering
- Call RefreshFilter() after changing filter criteria
- Use SortDescriptors for consistent ordering
-
Customization
- Use Style properties before custom drawing
- Apply themes for consistent appearance
- Use ItemStyle and GroupHeaderStyle for basic customization
- Only use DrawItem for complex custom rendering
-
Accessibility
- Enable UIAutomation support
- Provide meaningful DisplayMember values
- Support keyboard navigation
- Test with screen readers
Troubleshooting
Items Not Displaying
- Verify DataSource is set and not null
- Check DisplayMember matches property name (case-sensitive)
- Ensure data objects are public properties
- Verify ListView size is not zero
Selection Not Working
- Check SelectionMode is not None
- Verify SelectionChanged event is subscribed
- Ensure items are enabled
- Check if AllowMultiSelection matches SelectionMode
Grouping/Filtering Not Applied
- Call View.RefreshFilter() after filter changes
- Check GroupDescriptor PropertyName is correct
- Verify data property exists and is accessible
- Ensure LiveDataUpdateMode is appropriate
Performance Issues
- Reduce AutoFitMode usage for large lists
- Avoid complex DrawItem logic
- Use view recycling (default behavior)
- Consider virtualization for very large datasets
Checkbox Issues
- Verify
CheckBoxSelectionModeis notNone - Check
AllowRecursiveCheckingsetting for grouped lists - Use
ItemChecking/ItemCheckedevents, notSelectionChanged - Ensure
CheckedItemsvsSelectedItemsdistinction
Next 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.
FAQ
What does the syncfusion-winforms-listview skill do?
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.
How do I install syncfusion-winforms-listview?
Run npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-listview in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-winforms-listview/ (personal) or .claude/skills/syncfusion-winforms-listview/ (project).
Which AI agents can use syncfusion-winforms-listview?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is syncfusion-winforms-listview safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains syncfusion-winforms-listview?
It is published by syncfusion in syncfusion/winforms-ui-components-skills. It has 80 recorded installs.
More from syncfusion/winforms-ui-components-skills
syncfusion-winforms-datagrid
syncfusion/winforms-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-winforms-button
syncfusion/winforms-ui-components-skills
Guide developers to implement and customize the Syncfusion Windows Forms SfButton control for desktop applications. Use this when creating interactive buttons with text, images, styling, and theming in Windows Forms applications. Covers implementation, customization, and interaction handling.
syncfusion-winforms-common
syncfusion/winforms-ui-components-skills
Comprehensive guide for implementing Syncfusion Essential Studio Windows Forms (WinForms) controls in desktop applications. Use this skill when working with Syncfusion WinForms components or Essential Studio WinForms. Covers WinForms installation, localization, high DPI support, and .NET Core compatibility. Helps with adding controls, registering license keys, and troubleshooting WinForms component issues.
syncfusion-winforms-contextmenustrip
syncfusion/winforms-ui-components-skills
Implement ContextMenuStripEx enhanced context menus in Windows Forms applications. Use this when working with context menus, right-click functionality, or popup menus with custom items. Covers menu configuration, multi-level menus, keyboard shortcuts, and appearance customization in WinForms.
syncfusion-winforms-docking-manager
syncfusion/winforms-ui-components-skills
Guide to implement Syncfusion WinForms DockingManager control for Visual Studio-style dockable windows and layouts. Use this when creating docked, floating, or tabbed windows with advanced layout management. Covers dock states, auto-hide functionality, caption customization, and serialization in WinForms applications.
syncfusion-winforms-licensing
syncfusion/winforms-ui-components-skills
Comprehensive guide for implementing and managing Syncfusion Windows Forms licensing. Use this when troubleshooting license validation errors, generating or registering license keys, or configuring CI/CD license validation. This skill covers license key management, trial vs licensed versions, NuGet package licensing, and build server scenarios.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.