{"id":2273,"date":"2024-10-17T17:21:31","date_gmt":"2024-10-17T17:21:31","guid":{"rendered":"http:\/\/localhost:10003\/?p=2273"},"modified":"2026-08-25T14:58:44","modified_gmt":"2026-08-25T18:58:44","slug":"recherche-et-styles-derreur-de-cellule-dans-la-grille-de-donnees-pour-wpf","status":"publish","type":"post","link":"https:\/\/xceed.com\/fr\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/","title":{"rendered":"Styles de recherche et d'erreur de cellule dans la grille de donn\u00e9es pour WPF"},"content":{"rendered":"<p class=\"wp-block-paragraph\">En savoir plus sur&nbsp;<a href=\"http:\/\/xceed.com\/en\/our-products\/product\/datagrid-for-wpf\" target=\"_blank\" rel=\"noreferrer noopener\">Xceed DataGrid pour WPF<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Aujourd'hui, nous allons examiner les options de recherche et les styles d'erreur de cellule qu'offre la grille de donn\u00e9es.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Contr\u00f4le de recherche<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">La grille de donn\u00e9es pour WPF offre une option de recherche int\u00e9gr\u00e9e gr\u00e2ce \u00e0 l'utilisation de la fonction&nbsp;<em>Contr\u00f4le de recherche<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Le contr\u00f4le de recherche permet de rechercher du texte dans l'ensemble de la source de donn\u00e9es, de rechercher les occurrences d'une valeur textuelle sp\u00e9cifique dans la source de donn\u00e9es.&nbsp;<em>Grille de donn\u00e9es<\/em>. Il recherche dans chaque colonne visible, quel que soit son type de donn\u00e9es, pour trouver le texte dans n'importe quelle partie du contenu de la cellule (ce qui correspond \u00e0 une recherche \"contient\"). Chaque cellule visible contenant le texte est mise en \u00e9vidence, ce qui permet de voir d'un coup d'\u0153il quelles cellules contiennent le texte recherch\u00e9.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1011\" height=\"499\" src=\"http:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/SearchControl.png\" alt=\"\" class=\"wp-image-2274\" srcset=\"https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/SearchControl.png 1011w, https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/SearchControl-300x148.png 300w, https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/SearchControl-768x379.png 768w, https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/SearchControl-18x9.png 18w, https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/SearchControl-600x296.png 600w\" sizes=\"(max-width: 1011px) 100vw, 1011px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Par d\u00e9faut, le SearchControl n'est pas visible. Pour l'activer, l'utilisateur final doit appuyer sur la touche&nbsp;<strong>CTRL-F<\/strong>. Il appara\u00eetra alors automatiquement au-dessus du&nbsp;<em>Contr\u00f4le de groupe<\/em>. Il peut \u00eatre ferm\u00e9 par l'utilisateur final en cliquant sur le bouton&nbsp;<strong>Fermer<\/strong>&nbsp;ou en appuyant sur la touche&nbsp;<strong>S'\u00e9vader<\/strong>&nbsp;n'importe o\u00f9 dans la grille de donn\u00e9es. Cependant, s'il y a du texte dans le SearchControl, le fait d'appuyer sur la touche&nbsp;<strong>S'\u00e9vader<\/strong>&nbsp;effacera le texte plut\u00f4t que de fermer le contr\u00f4le, et \u00e0 condition qu'aucune cellule ou ligne ne soit \u00e9dit\u00e9e, auquel cas la commande&nbsp;<strong>S'\u00e9vader<\/strong>&nbsp;mettra simplement fin au processus d'\u00e9dition.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Il est possible d'utiliser le&nbsp;<em>Commandes DataGrid<\/em>&nbsp;(le&nbsp;<em>OpenSearch<\/em>,&nbsp;<em>Fermer la recherche<\/em>&nbsp;et&nbsp;<em>ToggleSearch<\/em>&nbsp;), et les placer sur un contr\u00f4le, comme un bouton ou une CheckBox, pour permettre \u00e0 l'utilisateur final de l'activer \u00e0 l'aide de la souris plut\u00f4t que du clavier. Il peut \u00e9galement \u00eatre ajout\u00e9 \u00e0 l'\u00e9l\u00e9ment&nbsp;<em>En-t\u00eates fixes<\/em>&nbsp;ou&nbsp;<em>Pieds fixes<\/em>&nbsp;de la&nbsp;<em>Contr\u00f4le DataGrid<\/em>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code data-no-translation=\"\">&lt;Grid xmlns:xcdg=\"http:\/\/schemas.xceed.com\/wpf\/xaml\/datagrid\"&gt;\n\t&lt;Grid.Resources&gt;\n\t\t&lt;xcdg:DataGridCollectionViewSource x:Key=\"cvs_orders\"\n\t\t\t\t\t\t   Source=\"{Binding Source={x:Static Application.Current}, Path=Orders}\"&gt;\n\t&lt;\/Grid.Resources&gt;\n\t&lt;Grid.RowDefinitions&gt;\n\t\t&lt;RowDefinition Height=\"Auto\" \/&gt;\n\t\t&lt;RowDefinition \/&gt;\n\t&lt;\/Grid.RowDefinitions&gt;\n\t&lt;Button Content=\"Toggle search control\"\n\t\tCommand=\"xcdg:DataGridCommands.ToggleSearch\"\n\t\tCommandTarget=\"{Binding ElementName=OrdersGrid}\" \/&gt;\n\t&lt;xcdg:DataGridControl x:Name=\"OrdersGrid\"\n\t\t\t      Grid.Row=\"1\"\n\t\t\t      ItemsSource=\"{Binding Source={StaticResource cvs_orders}}\"&gt;\n\t&lt;\/xcdg:DataGridControl&gt;\n&lt;\/Grid&gt;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Le SearchControl comprend \u00e9galement&nbsp;<strong>Suivant<\/strong>&nbsp;et&nbsp;<strong>Pr\u00e9c\u00e9dent<\/strong>&nbsp;qui permet de trouver la valeur correspondante suivante ou pr\u00e9c\u00e9dente, \u00e0 partir de la cellule actuelle. En appuyant sur&nbsp;<strong>F3<\/strong>&nbsp;(Suivant) et&nbsp;<strong>Shift-F3<\/strong>&nbsp;(Pr\u00e9c\u00e9dent) sont \u00e9galement prises en charge. Si le SearchControl est ferm\u00e9 alors qu'une valeur y est pr\u00e9sente, il est toujours possible de trouver la valeur correspondante suivante ou pr\u00e9c\u00e9dente \u00e0 l'aide de la fonction&nbsp;<strong>F3<\/strong>&nbsp;ou&nbsp;<strong>Shift-F3<\/strong>&nbsp;cl\u00e9s. R\u00e9glage de la&nbsp;<em>Texte de recherche<\/em>&nbsp;propri\u00e9t\u00e9 sur&nbsp;<em>Contr\u00f4le DataGrid<\/em>&nbsp;dans le code qui suit aura le m\u00eame effet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code data-no-translation=\"\">Notes:<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code data-no-translation=\"\">The SearchControl is not supported in Card Views.<\/code><\/li>\n\n\n\n<li><code data-no-translation=\"\">When manually adding the SearchControl to the FixedHeaders or FixedFooters of the DataGridControl, the end user cannot remove it, the\u00a0<strong>Close<\/strong>\u00a0button is not visible, and the\u00a0<strong>Escape<\/strong>\u00a0key is not active. It can only be removed in code behind.<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Style du contr\u00f4le de recherche<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">L'aspect du SearchControl peut \u00eatre personnalis\u00e9 au moyen d'une fonction&nbsp;<em>Style<\/em>Par exemple, nous pouvons modifier le&nbsp;<strong>Filigrane<\/strong>&nbsp;texte.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code data-no-translation=\"\">&lt;Grid xmlns:xcdg=\"http:\/\/schemas.xceed.com\/wpf\/xaml\/datagrid\"&gt;\n\t&lt;Grid.Resources&gt;\n\t\t&lt;xcdg:DataGridCollectionViewSource x:Key=\"cvs_orders\"\n\t\t\t\t\t\t   Source=\"{Binding Source={x:Static Application.Current}, Path=Orders}\"&gt;\n\t\t\t&lt;Style TargetType=\"{x:Type xcdg:SearchControl}\"&gt;\n\t\t\t\t&lt;Setter Property=\"Watermark\" Value=\"Type some text here\" \/&gt;\n\t\t\t&lt;\/Style&gt;\n\t\t&lt;\/xcdg:DataGridCollectionViewSource&gt;\n\t&lt;\/Grid.Resources&gt;\n \n\t&lt;xcdg:DataGridControl x:Name=\"OrdersGrid\"\n\t\t\t      ItemsSource=\"{Binding Source={StaticResource cvs_orders}}\"&gt;\n\t&lt;\/xcdg:DataGridControl&gt;\n&lt;\/Grid&gt;\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">D\u00e9sactivation du contr\u00f4le de recherche<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Il est possible d'emp\u00eacher l'activation du SearchControl par l'utilisateur final. Pour ce faire, il suffit de d\u00e9finir le param\u00e8tre&nbsp;<em>Autoriser la recherche<\/em>&nbsp;sur la propri\u00e9t\u00e9&nbsp;<em>Contr\u00f4le DataGrid<\/em>&nbsp;\u00e0&nbsp;<strong>faux<\/strong>. Cela d\u00e9sactive essentiellement la fonction&nbsp;<strong>CTRL-F<\/strong>&nbsp;combinaison de touches<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code data-no-translation=\"\">&lt;Grid xmlns:xcdg=\"http:\/\/schemas.xceed.com\/wpf\/xaml\/datagrid\"&gt;\n\t&lt;Grid.Resources&gt;\n\t\t&lt;xcdg:DataGridCollectionViewSource x:Key=\"cvs_orders\"\n\t\t\t\t\t\t   Source=\"{Binding Source={x:Static Application.Current}, Path=Orders}\" \/&gt;\n\t&lt;\/Grid.Resources&gt;\n \n\t&lt;xcdg:DataGridControl x:Name=\"OrdersGrid\"\n\t\t\t      AllowSearch=false\n\t\t\t      ItemsSource=\"{Binding Source={StaticResource cvs_orders}}\"&gt;\n\t&lt;\/xcdg:DataGridControl&gt;\n&lt;\/Grid&gt;\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Styles d'erreur de cellule<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Par d\u00e9faut, lorsque la valeur d'une cellule \u00e9choue le processus de validation, elle prend un style diff\u00e9rent pour indiquer visuellement qu'une erreur s'est produite.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"475\" height=\"371\" src=\"http:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/CellErrorStyle.gif\" alt=\"\" class=\"wp-image-2275\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Cette apparence peut \u00eatre red\u00e9finie pour \u00eatre personnalis\u00e9e, pour cela il faut utiliser la fonction&nbsp;<em>CellErrorStyle<\/em>&nbsp;peut \u00eatre remplac\u00e9e par un nouveau style qui sera utilis\u00e9 en cas d'erreur de validation. Le style d'erreur peut \u00eatre fourni au niveau de la grille, de la ligne, de la colonne ou de la cellule en d\u00e9finissant leur propri\u00e9t\u00e9 respective&nbsp;<em>CellErrorStyle<\/em>&nbsp;propri\u00e9t\u00e9s.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Lors de la d\u00e9finition d'un style \u00e0 utiliser lorsqu'une cellule est en erreur, une cl\u00e9 doit \u00eatre fournie, sinon le style sera appliqu\u00e9 \u00e0 tous les objets du type cible sp\u00e9cifi\u00e9 pour le style.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code data-no-translation=\"\">&lt;Grid xmlns:xcdg=\"http:\/\/schemas.xceed.com\/wpf\/xaml\/datagrid\"\n      xmlns:local=\"clr-namespace:Xceed.Wpf.Documentation\"&gt;\n\t&lt;Grid.Resources&gt;\n\t\t&lt;xcdg:DataGridCollectionViewSource x:Key=\"cvs_composers\"\n\t\t\t\t\t\t   Source=\"{Binding Source={x:Static Application.Current},Path=Composers}\"\/&gt;\n\t\t&lt;Style x:Key=\"cell_error\" TargetType=\"{x:Type xcdg:DataCell}\"&gt;\n\t\t\t&lt;Setter Property=\"Foreground\" Value=\"Red\"\/&gt;\n\t\t&lt;\/Style&gt;\n\t&lt;\/Grid.Resources&gt;\n\n\t&lt;xcdg:DataGridControl ItemsSource=\"{Binding Source={StaticResource cvs_composers}}\"\n\t\t\t      CellErrorStyle=\"{StaticResource cell_error}\"&gt;\n\t\t&lt;xcdg:DataGridControl.Columns&gt;\n\t\t\t&lt;xcdg:Column FieldName=\"Period\"\n\t\t\t\t     CellEditor=\"{StaticResource periodEditor}\"&gt;\n\t\t\t\t&lt;xcdg:Column.CellValidationRules&gt;\n\t\t\t\t\t&lt;local:PeriodVSCompositionCountCellValidationRule\/&gt;\n\t\t\t\t&lt;\/xcdg:Column.CellValidationRules&gt;\n\t\t\t&lt;\/xcdg:Column&gt;\n\t\t\t&lt;xcdg:Column FieldName=\"CompositionCount\"&gt;\n\t\t\t\t&lt;xcdg:Column.CellValidationRules&gt;\n\t\t\t\t\t&lt;local:PeriodVSCompositionCountCellValidationRule \/&gt;\n\t\t\t\t&lt;\/xcdg:Column.CellValidationRules&gt;\n\t\t\t&lt;\/xcdg:Column&gt;\n\t\t&lt;\/xcdg:DataGridControl.Columns&gt;\n\t&lt;\/xcdg:DataGridControl&gt;\n&lt;\/Grid&gt;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code data-no-translation=\"\">Note:<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code data-no-translation=\"\">The IsValidationErrorRestrictive property, found on the Row class, indicates whether the validation error that failed prevents the focus from moving to another row until the error is fixed. Usually, all errors are restrictive; however validation errors reported through IDataErrorInfo are considered non-restrictive. By default, when a non-restrictive error occurs an orange-toned error style will be used.<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Pour plus d'informations, veuillez vous r\u00e9f\u00e9rer \u00e0 la&nbsp;<a href=\"https:\/\/doc.xceed.com\/xceed-datagrid-for-wpf\/webframe.html#rootWelcome.html\" target=\"_blank\" rel=\"noreferrer noopener\">la documentation<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Le contr\u00f4le de recherche permet de rechercher du texte dans l'ensemble de la source de donn\u00e9es, de rechercher les occurrences d'une valeur textuelle sp\u00e9cifique dans la grille de donn\u00e9es.<\/p>","protected":false},"author":2,"featured_media":2238,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[60],"tags":[],"products":[],"class_list":["post-2273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Searching and Cell Error Styles in DataGrid for WPF - Xceed Software<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/xceed.com\/fr\/blog\/tutoriels\/recherche-et-styles-derreur-de-cellule-dans-la-grille-de-donnees-pour-wpf\/\" \/>\n<meta property=\"og:locale\" content=\"fr_CA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Searching and Cell Error Styles in DataGrid for WPF - Xceed Software\" \/>\n<meta property=\"og:description\" content=\"The SearchControl makes it possible to search text throughout the entire data source, to search for occurrences of a specific text value within the\u00a0DataGrid.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/xceed.com\/fr\/blog\/tutoriels\/recherche-et-styles-derreur-de-cellule-dans-la-grille-de-donnees-pour-wpf\/\" \/>\n<meta property=\"og:site_name\" content=\"Xceed Software\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-17T17:21:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-25T18:58:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/blog_DGP-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alain Jreij\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alain Jreij\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/\"},\"author\":{\"name\":\"Alain Jreij\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#\\\/schema\\\/person\\\/2d9169e6fd8ae4a8f58a9e1cc9a73778\"},\"headline\":\"Searching and Cell Error Styles in DataGrid for WPF\",\"datePublished\":\"2024-10-17T17:21:31+00:00\",\"dateModified\":\"2026-08-25T18:58:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/\"},\"wordCount\":576,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/blog_DGP-1.png\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/\",\"url\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/\",\"name\":\"Searching and Cell Error Styles in DataGrid for WPF - Xceed Software\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/blog_DGP-1.png\",\"datePublished\":\"2024-10-17T17:21:31+00:00\",\"dateModified\":\"2026-08-25T18:58:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/#breadcrumb\"},\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/#primaryimage\",\"url\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/blog_DGP-1.png\",\"contentUrl\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/blog_DGP-1.png\",\"width\":350,\"height\":350},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/xceed.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Searching and Cell Error Styles in DataGrid for WPF\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/xceed.com\\\/fr\\\/\",\"name\":\"Xceed Software\",\"description\":\"Provides tools for .NET, Windows Forms, WPF, Silverlight, and ASP.NET developers to create better applications.\",\"publisher\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/xceed.com\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-CA\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#organization\",\"name\":\"Xceed Software\",\"alternateName\":\"Xceed Software\",\"url\":\"https:\\\/\\\/xceed.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/Untitled-design-24.png\",\"contentUrl\":\"https:\\\/\\\/xceed.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/Untitled-design-24.png\",\"width\":512,\"height\":512,\"caption\":\"Xceed Software\"},\"image\":{\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#\\\/schema\\\/person\\\/2d9169e6fd8ae4a8f58a9e1cc9a73778\",\"name\":\"Alain Jreij\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87ff2d1efbe1a868809d8d554724877b76941f668176489a42238d867ab8bf06?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87ff2d1efbe1a868809d8d554724877b76941f668176489a42238d867ab8bf06?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87ff2d1efbe1a868809d8d554724877b76941f668176489a42238d867ab8bf06?s=96&d=mm&r=g\",\"caption\":\"Alain Jreij\"},\"url\":\"https:\\\/\\\/xceed.com\\\/fr\\\/blog\\\/author\\\/jreijaxceed-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Searching and Cell Error Styles in DataGrid for WPF - Xceed Software","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/xceed.com\/fr\/blog\/tutoriels\/recherche-et-styles-derreur-de-cellule-dans-la-grille-de-donnees-pour-wpf\/","og_locale":"fr_CA","og_type":"article","og_title":"Searching and Cell Error Styles in DataGrid for WPF - Xceed Software","og_description":"The SearchControl makes it possible to search text throughout the entire data source, to search for occurrences of a specific text value within the\u00a0DataGrid.","og_url":"https:\/\/xceed.com\/fr\/blog\/tutoriels\/recherche-et-styles-derreur-de-cellule-dans-la-grille-de-donnees-pour-wpf\/","og_site_name":"Xceed Software","article_published_time":"2024-10-17T17:21:31+00:00","article_modified_time":"2026-08-25T18:58:44+00:00","og_image":[{"width":350,"height":350,"url":"https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/blog_DGP-1.png","type":"image\/png"}],"author":"Alain Jreij","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alain Jreij","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/#article","isPartOf":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/"},"author":{"name":"Alain Jreij","@id":"https:\/\/xceed.com\/fr\/#\/schema\/person\/2d9169e6fd8ae4a8f58a9e1cc9a73778"},"headline":"Searching and Cell Error Styles in DataGrid for WPF","datePublished":"2024-10-17T17:21:31+00:00","dateModified":"2026-08-25T18:58:44+00:00","mainEntityOfPage":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/"},"wordCount":576,"commentCount":0,"publisher":{"@id":"https:\/\/xceed.com\/fr\/#organization"},"image":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/#primaryimage"},"thumbnailUrl":"https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/blog_DGP-1.png","articleSection":["Tutorials"],"inLanguage":"fr-CA","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/","url":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/","name":"Searching and Cell Error Styles in DataGrid for WPF - Xceed Software","isPartOf":{"@id":"https:\/\/xceed.com\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/#primaryimage"},"image":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/#primaryimage"},"thumbnailUrl":"https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/blog_DGP-1.png","datePublished":"2024-10-17T17:21:31+00:00","dateModified":"2026-08-25T18:58:44+00:00","breadcrumb":{"@id":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/#breadcrumb"},"inLanguage":"fr-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/"]}]},{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/#primaryimage","url":"https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/blog_DGP-1.png","contentUrl":"https:\/\/xceed.com\/wp-content\/uploads\/2024\/10\/blog_DGP-1.png","width":350,"height":350},{"@type":"BreadcrumbList","@id":"https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/xceed.com\/"},{"@type":"ListItem","position":2,"name":"Searching and Cell Error Styles in DataGrid for WPF"}]},{"@type":"WebSite","@id":"https:\/\/xceed.com\/fr\/#website","url":"https:\/\/xceed.com\/fr\/","name":"Xceed Software","description":"Fournit des outils aux d\u00e9veloppeurs .NET, Windows Forms, WPF, Silverlight et ASP.NET pour cr\u00e9er de meilleures applications.","publisher":{"@id":"https:\/\/xceed.com\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/xceed.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-CA"},{"@type":"Organization","@id":"https:\/\/xceed.com\/fr\/#organization","name":"Xceed Software","alternateName":"Xceed Software","url":"https:\/\/xceed.com\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/xceed.com\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/xceed.com\/wp-content\/uploads\/2026\/07\/Untitled-design-24.png","contentUrl":"https:\/\/xceed.com\/wp-content\/uploads\/2026\/07\/Untitled-design-24.png","width":512,"height":512,"caption":"Xceed Software"},"image":{"@id":"https:\/\/xceed.com\/fr\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/xceed.com\/fr\/#\/schema\/person\/2d9169e6fd8ae4a8f58a9e1cc9a73778","name":"Alain Jreij","image":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/secure.gravatar.com\/avatar\/87ff2d1efbe1a868809d8d554724877b76941f668176489a42238d867ab8bf06?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/87ff2d1efbe1a868809d8d554724877b76941f668176489a42238d867ab8bf06?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/87ff2d1efbe1a868809d8d554724877b76941f668176489a42238d867ab8bf06?s=96&d=mm&r=g","caption":"Alain Jreij"},"url":"https:\/\/xceed.com\/fr\/blog\/author\/jreijaxceed-com\/"}]}},"_links":{"self":[{"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/posts\/2273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/comments?post=2273"}],"version-history":[{"count":1,"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/posts\/2273\/revisions"}],"predecessor-version":[{"id":4258,"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/posts\/2273\/revisions\/4258"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/media\/2238"}],"wp:attachment":[{"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/media?parent=2273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/categories?post=2273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/tags?post=2273"},{"taxonomy":"products","embeddable":true,"href":"https:\/\/xceed.com\/fr\/wp-json\/wp\/v2\/products?post=2273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}