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

Show/Hide Gridlines

3 Answers 861 Views
GridView
This is a migrated thread and some comments may be shown as answers.
lamees
Top achievements
Rank 1
lamees asked on 04 Feb 2008, 12:55 PM
hey,
    is there a property that shows/Hides the grid's gridlines and I can change it in runtime?
thank you

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Feb 2008, 09:38 AM
Hi lamees,

There are two approaches to hide RadGridView's gridlines, depending on what kind of borders to you want to hide:
  1. Cell border is the border around the cell itself and it can be hidden by subscribing to the CellFormatting event and then in the radGridView1_CellFormatting event handler put this line of code:
    e.CellElement.DrawBorder = false
  2. Border on a GridTableElement level can be hidden by using this code snippet:
    ((GridTableElement)radGridView1.GridElement).GridBorderWidth = 0; 
Do not hesitate to contact us, if you have additional questions.

Regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 17 Apr 2021, 08:04 AM

hiii Telerik Team,

I want to merge RadGridView Template Grid last row cells to a single cell ...is it possible.... ?? can you please give a possible solution for this ?? (Please check the attached  Pic)

Thanks and Regards,

Ras Ran

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Apr 2021, 05:20 AM

Hello, Ras Ran,

There are several ways for simulating cells merging in RadGridView. Please refer to the following knowledge base article which lists all of them:

https://www.telerik.com/support/kb/winforms/details/radgridview-merge-celss 

Feel free to use this approach which suits your custom requirement best.

I hope this information helps. If you need any further assistance please don't hesitate to contact me.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Tags
GridView
Asked by
lamees
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or