{"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":"estilos-de-busqueda-y-error-de-celda-en-datagrid-para-wpf","status":"publish","type":"post","link":"https:\/\/xceed.com\/es\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/","title":{"rendered":"Estilos de b\u00fasqueda y error de celda en DataGrid para WPF"},"content":{"rendered":"<p class=\"wp-block-paragraph\">M\u00e1s informaci\u00f3n&nbsp;<a href=\"http:\/\/xceed.com\/en\/our-products\/product\/datagrid-for-wpf\" target=\"_blank\" rel=\"noreferrer noopener\">Xceed DataGrid para WPF<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hoy vamos a ver las opciones de B\u00fasqueda y los Estilos de Error de Celda que ofrece la cuadr\u00edcula de datos.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SearchControl<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">El DataGrid para WPF ofrece una opci\u00f3n de b\u00fasqueda integrada mediante el uso de la funci\u00f3n&nbsp;<em>SearchControl<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">El SearchControl permite buscar texto en toda la fuente de datos, buscar apariciones de un valor de texto espec\u00edfico dentro de la fuente de datos, buscar apariciones de un valor de texto espec\u00edfico dentro de la fuente de datos, buscar apariciones de un valor de texto espec\u00edfico dentro de la fuente de datos.&nbsp;<em>DataGrid<\/em>. Busca en cada columna visible, sea cual sea su tipo de datos, para encontrar el texto en cualquier parte del contenido de la celda (lo que corresponde a una b\u00fasqueda \"contiene\"). Cada celda visible que contiene el texto se resalta para ver de un vistazo qu\u00e9 celdas contienen el texto buscado.<\/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\">Por defecto, el SearchControl no es visible, para activarlo el usuario final debe pulsar&nbsp;<strong>CTRL-F<\/strong>. Aparecer\u00e1 autom\u00e1ticamente encima del&nbsp;<em>GroupByControl<\/em>. El usuario final puede cerrarla pulsando el bot\u00f3n&nbsp;<strong>Cerrar<\/strong>&nbsp;o pulsando el bot\u00f3n&nbsp;<strong>Escapar<\/strong>&nbsp;en cualquier lugar de la cuadr\u00edcula de datos. Sin embargo, si hay texto en el SearchControl, al pulsar&nbsp;<strong>Escapar<\/strong>&nbsp;borrar\u00e1 el texto en lugar de cerrar el control, y siempre que no se est\u00e9 editando ninguna celda o fila, en cuyo caso el bot\u00f3n&nbsp;<strong>Escapar<\/strong>&nbsp;simplemente terminar\u00e1 el proceso de edici\u00f3n.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Es posible utilizar el&nbsp;<em>DataGridCommands<\/em>&nbsp;(el&nbsp;<em>OpenSearch<\/em>,&nbsp;<em>CerrarBuscar<\/em>&nbsp;y&nbsp;<em>AlternarB\u00fasqueda<\/em>&nbsp;), y establecerlos en un control, como un Button o un CheckBox, para permitir al usuario final activarlo con la ayuda del rat\u00f3n en lugar del teclado. Tambi\u00e9n puede a\u00f1adirse a la funci\u00f3n&nbsp;<em>Cabeceras fijas<\/em>&nbsp;o&nbsp;<em>Pies fijos<\/em>&nbsp;de la&nbsp;<em>DataGridControl<\/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\">SearchControl tambi\u00e9n incluye&nbsp;<strong>Siguiente<\/strong>&nbsp;y&nbsp;<strong>Anterior<\/strong>&nbsp;que permite encontrar el valor coincidente siguiente o anterior, a partir de la celda actual. Pulsando&nbsp;<strong>F3<\/strong>&nbsp;(Siguiente) y&nbsp;<strong>May\u00fas-F3<\/strong>&nbsp;(Anterior). Si el SearchControl se cierra mientras un valor est\u00e1 presente en \u00e9l, todav\u00eda es posible encontrar el valor coincidente siguiente o anterior utilizando la funci\u00f3n&nbsp;<strong>F3<\/strong>&nbsp;o&nbsp;<strong>May\u00fas-F3<\/strong>&nbsp;llaves. Ajuste de las&nbsp;<em>BuscarTexto<\/em>&nbsp;propiedad en&nbsp;<em>DataGridControl<\/em>&nbsp;en c\u00f3digo detr\u00e1s tendr\u00e1 el mismo efecto.<\/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\">Estilo del SearchControl<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">El aspecto del SearchControl se puede personalizar mediante un bot\u00f3n&nbsp;<em>Estilo<\/em>por ejemplo, podemos cambiar el&nbsp;<strong>Marca de agua<\/strong>&nbsp;texto.<\/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\">Desactivar el SearchControl<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Es posible evitar que el SearchControl sea activado por el usuario final. Esto se hace estableciendo el par\u00e1metro&nbsp;<em>PermitirB\u00fasqueda<\/em>&nbsp;de la propiedad&nbsp;<em>DataGridControl<\/em>&nbsp;a&nbsp;<strong>falso<\/strong>. Esto desactiva esencialmente el&nbsp;<strong>CTRL-F<\/strong>&nbsp;combinaci\u00f3n de teclas<\/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\">Estilos de error de celda<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Por defecto, cuando el valor de una celda falla en el proceso de validaci\u00f3n, adoptar\u00e1 un estilo diferente para proporcionar una se\u00f1al visual de que se ha producido un error.<\/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\">Esta apariencia se puede redefinir para personalizarla, para ello se debe utilizar el bot\u00f3n&nbsp;<em>CellErrorStyle<\/em>&nbsp;se puede establecer a un nuevo estilo, que se utilizar\u00e1 cuando se produzca un error de validaci\u00f3n. El estilo de error se puede proporcionar a nivel de rejilla, fila, columna o celda mediante la configuraci\u00f3n de sus respectivas propiedades&nbsp;<em>CellErrorStyle<\/em>&nbsp;propiedades.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Cuando se define un estilo para utilizarlo cuando una celda tiene un error, debe proporcionarse una clave; de lo contrario, el estilo se aplicar\u00e1 a todos los objetos del tipo de destino especificado en el estilo.<\/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\">Para m\u00e1s informaci\u00f3n, consulte el&nbsp;<a href=\"https:\/\/doc.xceed.com\/xceed-datagrid-for-wpf\/webframe.html#rootWelcome.html\" target=\"_blank\" rel=\"noreferrer noopener\">documentaci\u00f3n<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>El SearchControl permite buscar texto en toda la fuente de datos, para buscar apariciones de un valor de texto espec\u00edfico dentro del DataGrid.<\/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.4 - 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\/es\/blog\/tutoriales\/estilos-de-busqueda-y-error-de-celda-en-datagrid-para-wpf\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\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\/es\/blog\/tutoriales\/estilos-de-busqueda-y-error-de-celda-en-datagrid-para-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 minutos\" \/>\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\":\"es\",\"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\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/xceed.com\\\/blog\\\/tutorials\\\/searching-and-cell-error-styles-in-datagrid-for-wpf\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@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\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/xceed.com\\\/fr\\\/#organization\",\"name\":\"Xceed Software\",\"alternateName\":\"Xceed Software\",\"url\":\"https:\\\/\\\/xceed.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@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\":\"es\",\"@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\\\/es\\\/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\/es\/blog\/tutoriales\/estilos-de-busqueda-y-error-de-celda-en-datagrid-para-wpf\/","og_locale":"es_MX","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\/es\/blog\/tutoriales\/estilos-de-busqueda-y-error-de-celda-en-datagrid-para-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 minutos"},"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":"es","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":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xceed.com\/blog\/tutorials\/searching-and-cell-error-styles-in-datagrid-for-wpf\/"]}]},{"@type":"ImageObject","inLanguage":"es","@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":"Proporciona herramientas para que los desarrolladores de .NET, Windows Forms, WPF, Silverlight y ASP.NET puedan crear mejores aplicaciones.","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":"es"},{"@type":"Organization","@id":"https:\/\/xceed.com\/fr\/#organization","name":"Xceed Software","alternateName":"Xceed Software","url":"https:\/\/xceed.com\/fr\/","logo":{"@type":"ImageObject","inLanguage":"es","@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":"es","@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\/es\/blog\/author\/jreijaxceed-com\/"}]}},"_links":{"self":[{"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/posts\/2273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/comments?post=2273"}],"version-history":[{"count":1,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/posts\/2273\/revisions"}],"predecessor-version":[{"id":4258,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/posts\/2273\/revisions\/4258"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/media\/2238"}],"wp:attachment":[{"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/media?parent=2273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/categories?post=2273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/tags?post=2273"},{"taxonomy":"products","embeddable":true,"href":"https:\/\/xceed.com\/es\/wp-json\/wp\/v2\/products?post=2273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}