This is a migrated thread and some comments may be shown as answers.

Hide&Show Group Panel

1 Answer 221 Views
GridView
This is a migrated thread and some comments may be shown as answers.
kdev
Top achievements
Rank 1
kdev asked on 28 Aug 2007, 05:07 PM
Hi all,

How can I Hide the GridView's Group Panel and show it only when I group by a column 
I try this 
  private void radGridView1_MasterGridViewTemplate_GroupingChanged(object sender, ListChangedEventArgs e)  
        {  
            if (this.radGridView1.ShowGroupPanel == true)  
            {  
                this.radGridView1.ShowGroupPanel = false;  
            }  
            else  
            {  
                this.radGridView1.ShowGroupPanel = true;  
            }  
        } 

But it doesn't seem to work when I group By two columns :(

Thanks in advance.
Kort

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 29 Aug 2007, 08:10 AM
Hi Kort,

One solution of your problem is:
 
private void radGridView1_MasterGridViewTemplate_GroupingChanged(object sender, ListChangedEventArgs e)   
    this.radGridView1.ShowGroupPanel = this.radGridView1.MasterGridViewTemplate.GroupByExpressions.Count > 0;  

If you have further questions, don't hesitate to write us.

 
Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
kdev
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or