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?
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
0
Hello Mojtaba,
Thank you for your question. Please refer to the following code snippet:
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.
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
![](/forums/images/avatarimages/ca5e7229-9308-457e-a99e-58063bf595d8help%20and%20support.png)
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?
Thank you for your reply. I do your suggestion but it does not work.
Any other idea?
0
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.
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
![](/forums/images/avatarimages/ca5e7229-9308-457e-a99e-58063bf595d8help%20and%20support.png)
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.
Thank you for your reply. I am working with Q3 2008.
0
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.
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.