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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how can i hide some specific rows in gridGroupingControl?

Thread ID:

Created:

Updated:

Platform:

Replies:

41632 Mar 8,2006 02:31 AM UTC Mar 9,2006 02:51 AM UTC WinForms 4
loading
Tags: GridControl
Andy Liu
Asked On March 8, 2006 02:31 AM UTC

Hi, I need to hide some specific rows in gridGroupingControl, my component version is Essential Suite 2.0.5.1,how can i do that?

Administrator [Syncfusion]
Replied On March 8, 2006 05:14 AM UTC

Hi Andy, Please try this code GridTableModel tm = this.gridGroupingControl1.TableModel ; //hide a single row tm.Rows.Hidden[4] = true; //OR hide a group of rows. tm.HideRows.SetRange(0,10,true); Let me know if you need any further assistance. Regards, Haneef

Andy Liu
Replied On March 8, 2006 08:22 AM UTC

OK , it works, thanks Haneef! further, whether the index contained the index that has been hidden in "Hidden" or "SetRange" method? for example: for(int i=0;i<3;i++) { tm.Rows.Hidden[i]; } what would happen? the top 3 rows will be hidden or only first row hide? >Hi Andy, > >Please try this code > >GridTableModel tm = this.gridGroupingControl1.TableModel ; >//hide a single row >tm.Rows.Hidden[4] = true; >//OR hide a group of rows. >tm.HideRows.SetRange(0,10,true); > > >Let me know if you need any further assistance. > >Regards, >Haneef

Administrator [Syncfusion]
Replied On March 8, 2006 11:12 AM UTC

Hi Andy, for(int i=0;i<3;i++) { tm.Rows.Hidden[i] = true; //Toshow make it False. } When you use the above code, the Top Three Rows will be hidden. And its perfectly fine to do in the other way also. Thanks Haneef

Andy Liu
Replied On March 9, 2006 02:51 AM UTC

OK,perfect! it meet my needs thanks! >Hi Andy, > >for(int i=0;i<3;i++) >{ >tm.Rows.Hidden[i] = true; //Toshow make it False. >} > >When you use the above code, the Top Three Rows will be hidden. And its perfectly fine to do in the other way also. > >Thanks >Haneef >

CONFIRMATION

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.

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

;