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

Hide header row in detail table of hierarchical

4 Answers 300 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sudheer
Top achievements
Rank 2
sudheer asked on 19 Jul 2009, 09:43 AM

Hi team,

I have a doubt in radgrid, Is there any chance to hide header and paging row in detail table of hierarchical
grid.

For quick idea please view the below url, which i am expecting
http://picasaweb.google.com/lh/photo/ef77PtMyZe6xC35UHUHAFg?feat=directlink

But Currently using telerik i m able to get like below image(Url)
http://picasaweb.google.com/lh/photo/-qzk-asxoAWVlajOY0f8wg?feat=directlink

If, please send an example it's very urgent!!!!!!!!!!

Thanks for any advance help.....

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Jul 2009, 06:01 AM
Hi Sudheer,

You may hide the Header and disable paging for the Detail table as shown below.

ASPX:
 
                <DetailTables> 
                      <telerik:GridTableView runat="server" Caption="Detail"  ShowHeader="false"  AllowPaging="false"  Name="Detail"  DataSourceID="SqlDataSource1" > 
                       <Columns> 
                       <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName" 
                            UniqueName="ProductName"   > 
                        </telerik:GridBoundColumn> 
                         <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn> 
                       </Columns> 
                   </telerik:GridTableView> 
               </DetailTables> 

Thanks
Shinu.

0
sudheer
Top achievements
Rank 2
answered on 20 Jul 2009, 07:14 AM
Hi shinu,

Thank u very much ,this is what exactly i want and looking ...........................
0
Prashant
Top achievements
Rank 1
answered on 12 May 2011, 12:19 PM
Is there any way to hide the header row but need to show the filter control row, because if we set ShowHeader to false it hides heder and the filter control both.
0
Princy
Top achievements
Rank 2
answered on 12 May 2011, 12:35 PM
Hello Prasanth,

Try the following code snippet in the ItemCreated event.
C#:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
 {
       if (e.Item is GridHeaderItem)
      {
         GridHeaderItem item = (GridHeaderItem)e.Item;
         item.Display = false;
      }
  }

Thanks,
Princy.
Tags
Grid
Asked by
sudheer
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
sudheer
Top achievements
Rank 2
Prashant
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or