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.

how can i hide some specific rows in gridGroupingControl?

Thread ID:

Created:

Updated:

Platform:

Replies:

41632 Mar 7,2006 09:31 PM Mar 8,2006 09:51 PM Windows Forms 4
loading
Tags: GridControl
Andy Liu
Asked On March 7, 2006 09:31 PM

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 12:14 AM

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 03:22 AM

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 06:12 AM

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 8, 2006 09:51 PM

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.

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.

;