Removing lines between columns in datagrid

Quick question, Is there any way to remove the lines between columns in a datagrid? I've only seen one answer on SO and it was in regards to WPF, and was not relevant to winforms.

I'm starting to think it may be something super simple, or perhaps the opposite and i'll have to override the draw functions (Which is more effort than it's worth and i'll probably leave it).

Cheers in advance


The simplest way is to change the border style (also see other *Horizontal styles) by modifying the CellBorderStyle property in property inspector or in the code:

dataGridView1.CellBorderStyle = DataGridViewCellBorderStyle.SingleHorizontal;

It always helps to look up the control documentation in MSDN :)

Need Your Help

How is Reflection Implemented in Java?

java reflection implementation

The Java 7 Language Specifications say pretty early on:

Windows equivalent command for Octal Dump(OD)?

windows linux

What is windows equivalent command for od

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.