how can i hide some specific rows in gridGroupingControl?

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?

4 Replies

AD Administrator Syncfusion Team 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


AL Andy Liu 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


AD Administrator Syncfusion Team 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


AL Andy Liu 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 >

Loader.
Up arrow icon