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

Cancel Expanding of a Group.

Thread ID:





16641 Jul 21,2004 11:49 AM UTC Jul 21,2004 02:28 PM UTC WinForms 1
Tags: Grouping
Bhandhavi Sangaru
Asked On July 21, 2004 11:49 AM UTC

I would like to cancel expanding of a Group, by checking a value in the child column. Please help! Thanks, Bhandhavi.

Administrator [Syncfusion]
Replied On July 21, 2004 02:28 PM UTC

Hi Bhandhavi, you can handle the GroupExpanding event and cancel the operation there as shown in code below this.groupingGrid1.GroupExpanding += new GroupEventHandler(groupingGrid1_GroupExpanding); private void groupingGrid1_GroupExpanding(object sender, GroupEventArgs e) { // work around for now: throw new Exception(); // in future: // e.Cancel = true; } I noticed that with the current version the e.Cancel property is not checked. That''s why you have to throw an exception. In future builds you will be able to simple set e.Cancel = true. I added support for checking this property in the grid.grouping source code. Stefan


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon