We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Grid Grouping Icon arrow direction

Hi Team,
I need to display Grouping Icon Direction when it is in minimize the grid need to display icon right direction and it is collapse view mode need to be display down directionwhich i mentioned below image like number 2.



1 Reply

BS Balasubramani Sundaram Syncfusion Team July 24, 2019 06:57 PM UTC

Hi Web Synergies, 
 
Thank you for using Syncfusion products. 
 
Based on the provided information, your requirement of “Customizing the icon of collapse / Expand of grouping in DataGrid” in Xamarin.Forms can be achieved using the GridStyle property of DataGrid. By inheriting the DataGridStyle you can get / set your customized icon to the collapse / Expand and set in the Grid style property. Please refer the following code example for the same.  
 
Please refer the sample and code snippet for your reference, 
 
Snippet 
[C#]      
        
_dataGrid.GridStyle = new DataGridStyleDemo(); 
……….. 
 
public class DataGridStyleDemo: DataGridStyle 
{ 
    public DataGridStyleDemo() 
    { 
 
    } 
 
    public override ImageSource GetGroupCollapseIcon() 
    { 
        return ImageSource.FromFile("Right.jpg"); 
    } 
 
    public override ImageSource GetGroupExpanderIcon() 
    { 
        return ImageSource.FromFile("Left.jpg"); 
    } 
} 
 
 
 
Whether your requirement to customize the collapse icon in DataForm. We can able to customize that too. Please refer the sample in below mentioned link for your reference. 
 
Sample link: DataForm 
 
 
 
 
If the given sample doesn’t meet your requirement, please modify the sample based on your scenario and revert to us assist you more. 
 
Regards,
Balasubramani Sundaram.
 


Loader.
Live Chat Icon For mobile
Up arrow icon