Token导航 LogoToken导航TokenDH.com
前端设计external-servicegithub未标认证来源可访问许可证需确认审计通过

syncfusion-wpf-smart-datagridSynfusion WPF 智能数据网格

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

353

周安装

15

GitHub Stars

2

下载量

124
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-wpf-smart-datagrid(Synfusion WPF 智能数据网格)
来源仓库:https://github.com/syncfusion/wpf-ui-components-skills
仓库路径:skills/syncfusion-wpf-smart-datagrid
安装命令:
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-smart-datagrid
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-smart-datagrid

简介

用于辅助数据整理、表格处理、CSV/Excel 分析和图表准备。

  • 适合清洗字段、汇总数据、发现异常或生成统计口径说明。
  • 使用时需确认数据来源、字段含义和时间范围,避免误判样本为全量。
  • 涉及敏感数据或导出文件时,应先确认权限和脱敏边界。
  • 安装前建议核对仓库维护状态及是否会触发联网或文件读写操作。

SKILL.md

Implementing Syncfusion WPF Smart DataGrid

This skill guides you in implementing the Syncfusion WPF Smart DataGrid (SfSmartDataGrid), an AI-powered data grid control that enables natural language-driven operations for sorting, filtering, grouping, and highlighting. The Smart DataGrid interprets user prompts and applies context-aware actions, making complex data operations intuitive and efficient.

When to Use This Skill

Use this skill when the user needs to:

  • Implement AI-powered data grids in WPF applications with natural language command support
  • Enable natural language sorting, filtering, grouping, or highlighting without manual configuration
  • Set up Azure OpenAI integration for grid intelligence features
  • Create data-driven applications where users interact with grids using conversational prompts
  • Apply multi-column operations (sort, filter, group) through single text commands
  • Build intuitive data exploration interfaces with AssistView and suggested prompts
  • Customize AI behaviors such as highlight colors, initial prompts, or enable/disable smart actions

This skill is essential for modern WPF data applications that leverage AI to simplify user interactions with complex datasets.

Component Overview

The SfSmartDataGrid enhances traditional data grid functionality with:

  • AI Sorting – Sort data using natural language (e.g., "sort by city descending")
  • Intelligent Filtering – Apply filters with plain-language conditions (e.g., "filter Country equals Germany AND Revenue > 1000")
  • Smart Grouping – Organize data with AI prompts (e.g., "group by Country and ShipCity")
  • Row and Cell Highlighting – Emphasize data by describing conditions (e.g., "highlight rows where Total > 1000 color LightPink")
  • AssistView Integration – Chat-like interface for entering prompts and viewing AI responses
  • Customizable Suggestions – Predefined prompts to guide users toward common actions

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Creating a new WPF project for Smart DataGrid
  • Installing required NuGet packages (Syncfusion.SfSmartComponents.WPF)
  • Understanding assembly dependencies (Syncfusion.Data.WPF, Syncfusion.SfGrid.WPF, etc.)
  • Adding the control via Designer, XAML, or C#
  • Basic grid initialization and setup

Data Model and Binding

📄 Read: references/data-model-binding.md

  • Creating data model classes with INotifyPropertyChanged
  • Building ViewModels with ObservableCollection
  • Binding ItemsSource to data collections
  • Configuring columns (GridTextColumn, GridNumericColumn, GridDateTimeColumn)
  • AutoGenerateColumns vs manual column definition
  • Setting CurrentUser for AssistView message differentiation

AI Service Setup

📄 Read: references/ai-service-setup.md

  • Registering Azure OpenAI services in App.xaml.cs
  • Configuring AzureOpenAIClient with API keys and endpoints
  • Setting up IChatClient for AI integration
  • Using SyncfusionAIExtension to configure AI services
  • Troubleshooting AI service connection issues

AI Sorting and Grouping

📄 Read: references/ai-sorting-grouping.md

  • Using natural language for single and multi-column sorting
  • Applying ascending and descending sort orders via prompts
  • Clearing sorting with commands
  • Creating single-level and multi-level grouping with AI
  • Combining multiple grouping operations
  • Removing grouping through clear commands

AI Filtering and Highlighting

📄 Read: references/ai-filtering-highlighting.md

  • Applying filters with natural language conditions
  • Using filter operators (equals, contains, greaterThan, lessThan, between)
  • Combining filters with AND/OR logic
  • Clearing applied filters
  • Highlighting rows and cells based on conditions
  • Specifying custom colors (named, hex, RGB) for highlights
  • Using default highlight brush
  • Clearing highlights selectively (all, row-only, cell-only)

Customization and Events

📄 Read: references/customization-events.md

  • Setting CurrentUser for message differentiation
  • Configuring Suggestions for predefined prompts
  • Using Prompt property for auto-executed initial commands
  • Enabling or disabling smart actions with EnableSmartActions
  • Customizing HighlightBrush for visual emphasis
  • Executing prompts programmatically with ExecutePrompt method
  • Handling AssistViewRequest event to intercept or cancel requests

Quick Start Example

Here's a minimal example to set up an AI-powered Smart DataGrid:

XAML:

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
        xmlns:local="clr-namespace:WpfApplication1"
        Title="Smart DataGrid Demo" Height="600" Width="900">

    <Window.DataContext>
        <local:ViewModel/>
    </Window.DataContext>

    <Grid>
        <syncfusion:SfSmartDataGrid x:Name="SmartGrid"
                                    ItemsSource="{Binding OrderInfoCollection}"
                                    CurrentUser="{Binding CurrentUser}"
                                    Suggestions="{Binding AiSuggestions}"
                                    EnableSmartActions="True"
                                    ColumnSizer="Star">
            <syncfusion:SfSmartDataGrid.Columns>
                <syncfusion:GridNumericColumn MappingName="OrderID" HeaderText="Order ID"/>
                <syncfusion:GridTextColumn MappingName="CustomerName" HeaderText="Customer"/>
                <syncfusion:GridTextColumn MappingName="ProductName" HeaderText="Product"/>
                <syncfusion:GridNumericColumn MappingName="Quantity"/>
                <syncfusion:GridNumericColumn MappingName="Freight"/>
            </syncfusion:SfSmartDataGrid.Columns>
        </syncfusion:SfSmartDataGrid>
    </Grid>
</Window>

App.xaml.cs (AI Service Registration):

using Azure.AI.OpenAI;
using Microsoft.Extensions.AI;
using Microsoft.Extensions.DependencyInjection;
using Syncfusion.UI.Xaml.SmartComponents;
using System.ClientModel;

public partial class App : Application
{
    public App()
    {
        string azureApiKey = "<YOUR-API-KEY>";
        Uri azureEndpoint = new Uri("<YOUR-ENDPOINT>");
        string deploymentName = "<YOUR-DEPLOYMENT>";

        AzureOpenAIClient azureClient = new AzureOpenAIClient(
            azureEndpoint,
            new ApiKeyCredential(azureApiKey)
        );

        IChatClient chatClient = azureClient
            .GetChatClient(deploymentName)
            .AsIChatClient();

        SyncfusionAIExtension.Services.AddSingleton<IChatClient>(chatClient);
        SyncfusionAIExtension.ConfigureSyncfusionAIServices();
    }
}

Common Patterns

Pattern 1: Natural Language Sorting

User Need: Sort data by multiple columns without manual configuration.

Prompt Examples:

  • "sort by city in descending"
  • "sort by city column in descending and Revenue ascending"
  • "clear sorting"

When to Use: User wants quick, intuitive sorting via text commands.

Pattern 2: Intelligent Filtering with Conditions

User Need: Apply complex filters using plain language.

Prompt Examples:

  • "filter Country equals Germany"
  • "filter Country equals Germany AND Revenue greaterThan 1000"
  • "filter OrderID between 20251001 and 20251020"
  • "clear filters"

When to Use: User needs conditional data filtering without building predicates manually.

Pattern 3: Multi-Level Grouping

User Need: Organize data hierarchically.

Prompt Examples:

  • "group by Country"
  • "group by Country and ShipCity"
  • "clear grouping"

When to Use: User wants to analyze data in organized, nested groups.

Pattern 4: Conditional Highlighting

User Need: Visually emphasize important data.

Prompt Examples:

  • "highlight rows where Total > 1000 color LightPink"
  • "highlight cells in OrderID lessThan 1005 color Red"
  • "highlight rows where Total > 1000 color LightPink AND highlight cells in OrderID lessThan 1005 color Red"
  • "clear highlight" / "clear row highlight" / "clear cell highlight"

When to Use: User wants visual indicators for critical data points.

Pattern 5: Programmatic Prompt Execution

User Need: Execute AI actions without opening AssistView.

Implementation:

// Execute prompt directly from code
SmartGrid.ExecutePrompt("Sort the OrderID by Descending");
SmartGrid.ExecutePrompt("filter PaymentStatus equals Not Paid");

When to Use: Programmatic workflows where AI actions are triggered by application logic.

Pattern 6: Intercepting and Validating Requests

User Need: Control or validate AI requests before execution.

Implementation:

SmartGrid.AssistViewRequest += (sender, e) =>
{
    // Access the prompt
    string userPrompt = e.Prompt;

    // Optionally cancel the request
    if (userPrompt.Contains("forbidden"))
    {
        e.Cancel = true;
    }
};

When to Use: Need to validate, log, or prevent certain AI operations.

Key Properties

PropertyTypePurpose
ItemsSourceIEnumerableData source for the grid
CurrentUserAuthorIdentifies user for AssistView message alignment (required)
SuggestionsObservableCollection<string>Predefined prompts shown in AssistView
PromptstringInitial prompt auto-executed on AssistView open
EnableSmartActionsboolEnable/disable AI-powered actions (default: false)
HighlightBrushSolidColorBrushDefault brush for highlighting without color specified
AutoGenerateColumnsboolAuto-generate columns from data model properties
ColumnSizerGridLengthUnitTypeColumn sizing mode (Star, Auto, None)

Key Methods

MethodPurpose
ExecutePrompt(string prompt)Execute AI action programmatically without AssistView

Key Events

EventPurpose
AssistViewRequestTriggered when user sends a request; provides Cancel option

Common Use Cases

  1. Business Intelligence Dashboards – Enable analysts to explore data with natural language queries
  2. Order Management Systems – Allow users to filter, sort, and highlight orders using conversational commands
  3. Financial Reporting – Apply complex filters and grouping for financial data analysis
  4. Customer Relationship Management (CRM) – Query customer data with intuitive prompts
  5. Inventory Management – Quickly identify critical inventory levels with highlighting
  6. Sales Analytics – Group and sort sales data by region, product, or time period
  7. Log Viewers – Filter logs with natural language conditions
  8. Data Export Tools – Pre-filter data before export using AI commands

Next Steps

After implementing the Smart DataGrid:

  1. Configure suggested prompts to guide users toward common operations
  2. Test AI service connectivity and response accuracy
  3. Customize highlight colors to match application theme
  4. Add validation for user prompts via AssistViewRequest event
  5. Explore programmatic prompt execution for automated workflows

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.54%
按下载量换算40

Claude

32.48%
按下载量换算40

Cursor

17.59%
按下载量换算22

Gemini CLI

9.37%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills