Search matchs empty stings

Hey there, 

I am using the SFDatagrid and add the search box to the toolbar.
after entering something to the box the grid will show rows with matching field contents AND rows where are empty strings.

For example:

Data:
Item 1 {Name="Item1",Description="desciption example text"}

Item 2 {Name="Item2",Description=""}

Item 3 {Name="Item2",Description="another description"}

these three rows are shown if the searchbox is empty.
If I enter "another"
Them Item 2 and Item 3 are shown.
I think this is because of the empty Description of Item2.

If I disable searching for the Description column, then only Item3 is shown.

How can I prevent empty strings to match every search entry?

Best

Alex


1 Reply

VN Vignesh Natarajan Syncfusion Team July 29, 2025 04:32 AM UTC

Hi Alexander Kuhlmann,


We’ve created a sample attempting to replicate the reported issue from our end. However, we were unable to reproduce the behavior you described.

For your reference, we’ve attached the verified sample and accompanying video demonstration—please take a look.


Sample: https://blazorplayground.syncfusion.com/embed/LtLoZmhlfALbXryG?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5


If you are still facing the reported issue, we require some additional clarification from your end. Please share the below details to proceed further at our end.


  1. Please provide a simple issue replicating sample or try to modify the above-mentioned sample.
  2. Share us the video demonstration of the reported issue.
  3. Have done any customization in searching operation. 
  4. Also share more details on how you have bound data to Grid component (i.e.) using DataManager component or DataSource property 


The above requested detail will be very helpful for us to validate the reported issue at our end.


Regards,

Vignesh Natarajan


Attachment: F197242_113009f3.zip

Loader.
Up arrow icon