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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to load a button in CaptionSummaryRow and prevent expanding and collapsing of groups upon clicking it?

You can load a button inside the CaptionSummaryCell by customizing the ControlTemplate of the GridCaptionSummaryCell using Style.

 

 

You can prevent the expanding and collapsing of the group upon clicking the button, by handling the SfDatagrid.GroupCollapsing and SfDatagrid.GroupExpanding events as shown in the below the code.

 

The output upon executing the above task will be as shown below.

C:\Users\prasanth.saravanan\AppData\Local\Microsoft\Windows\INetCache\Content.Word\Capture7.png

 

Samples:

WPF

UWP

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7843 07/13/2017 07/13/2017 UWP SfDataGrid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon