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.

Cancel Expanding of a Group.

Thread ID:





16641 Jul 21,2004 07:49 AM Jul 21,2004 10:28 AM Windows Forms 1
Tags: Grouping
Bhandhavi Sangaru
Asked On July 21, 2004 07:49 AM

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 10:28 AM

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.

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.