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

hiding header row

5 Answers 211 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mojtaba
Top achievements
Rank 1
Mojtaba asked on 09 Mar 2009, 12:42 PM
I am trying to hide row headers by setting ShowColumnHeaders property to false, and it worked, but a thin line remind. Why??
I am hiding all things ShowFilteringRow , ShowGroupedColumn , AllowGrouping ,........ even I hide all cell borders with e.CellElement.DrawBorder and grid borders with GridElement.BorderWidth .
In fact my grid show just Data and thin line at the top of them. How can hide this line?

5 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 13 Mar 2009, 03:34 PM
Hello Mojtaba,

Thank you for your question. Please refer to the following code snippet:

private void Form1_Load(object sender, EventArgs e) 
            this.radGridView1.MasterGridViewTemplate.ShowFilteringRow= false
            this.radGridView1.ShowGroupPanel = false
            this.radGridView1.MasterGridViewTemplate.ShowColumnHeaders = false
            this.radGridView1.MasterGridViewTemplate.AllowAddNewRow = false
 
private void radGridView1_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e) 
            e.CellElement.DrawBorder = false
 
private void radGridView1_ViewRowFormatting(object sender, Telerik.WinControls.UI.RowFormattingEventArgs e) 
            e.RowElement.DrawBorder = false
            e.RowElement.DrawFill = false

Do not hesitate to write me back if you have further questions.

Greetings,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mojtaba
Top achievements
Rank 1
answered on 04 Apr 2009, 06:15 AM
Hello Nick,
Thank you for your reply. I do your suggestion but it does not work.
Any other idea?
0
Nick
Telerik team
answered on 06 Apr 2009, 04:36 PM
Hello Mojtaba,

Thank you for your question. I have attached a screenshot demonstrating the code I sent earlier. The code has been tested with the Q1 2009 release.
 

All the best,
Nick
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Mojtaba
Top achievements
Rank 1
answered on 08 Apr 2009, 05:18 AM
Hello Nick,
Thank you for your reply. I am working with Q3 2008.
0
Nick
Telerik team
answered on 08 Apr 2009, 01:57 PM
Hi Mojtaba,

Please upgrade to our latest release. You can find instructions on how to upgrade here. If this does not help, please send us a sample project so we can help you further. Please note that you cannot attach files in forums so you need to open a new support ticket.

Best wishes,
Nick
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Mojtaba
Top achievements
Rank 1
Answers by
Nick
Telerik team
Mojtaba
Top achievements
Rank 1
Share this question
or