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

Hide a column when I drag it to group

Thread ID:





21734 Nov 18,2004 02:09 PM UTC Nov 18,2004 05:01 PM UTC WinForms 1
Tags: GridControl
Jose Egea
Asked On November 18, 2004 02:09 PM UTC

Hi: How can I hide a column when I drag it to the grouping par, and make it visible when it returns to the grid? And maybe a beginner question, but in a GDBG when my grid is empty the currentcell.rowindex value is 1, same than when I have only one row. This way I have to check before execute an action how much records I have in the binder. Is there a better way to do that? Thanks in advance.

Administrator [Syncfusion]
Replied On November 18, 2004 05:01 PM UTC

To hide the grouped column, you can use subcribe to the TableDescriptor.GroupedColumns.Changing
private void GroupedColumns_Changing(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
	SortColumnDescriptor scd = e.Item as SortColumnDescriptor;
	if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Remove)
	else if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Add)
Try these two properties to get total count and filtered counts. this.gridGroupingControl1.Table.Records.Count; this.gridGroupingControl1.Table.FilteredRecords.Count;


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