Hide the syncfusion icon in the CollectionEditor?

I'm using the collection editor in the PropertyGrid, and I would like to hide (or replace) the Syncfusion icon in its header.


3 Replies

SN Sudharsan Narayanan Syncfusion Team March 8, 2022 03:58 AM UTC

Hi Smadar,

You can be able to achieve your requirement by using the CollectionEditorOpening event. Please check the sample and the code snippet for your reference.  
  
  
Code Snippet: 

 
  
private void propertyGrid_CollectionEditorOpening(object sender, Syncfusion.Windows.PropertyGrid.CollectionEditorOpeningEventArgs e)  
        {  
            foreach (Window window in Application.Current.Windows)  
            {  
                if (window.GetType() == typeof(Syncfusion.Windows.PropertyGrid.CollectionEditor))  
                {  
                    window.Icon = new BitmapImage(new Uri("pack://application:,,,/Icon1.ico", UriKind.RelativeOrAbsolute));  
                }  
  
            }  
             
        }  
  
Output: 

 
   
  
Please let us know if you need any further assistance on this. We will be glad to assist you.  
  
Regards,  
Sudharsan


ST Smadar Tsdaka replied to Sudharsan Narayanan March 8, 2022 11:00 AM UTC

Thank you very much. That was very helpful



SN Sudharsan Narayanan Syncfusion Team March 8, 2022 12:04 PM UTC

Hi Smadar,

We are glad to know that your issue has been fixed. Please let us know if you need any other assistance. We are happy to assist you.

Regards,
Sudharsan


Loader.
Up arrow icon