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.
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.