Solved

Hiding winforms Datagrid 'selector' column

Posted on 2003-10-29
4
434 Views
Last Modified: 2008-02-20
Hi

I would like to remove that default column grey selector column that gets added as the first column in a datagrid,
Is it possible and if so how do I do it ?

Regards

Richard
0
Comment
Question by:rjuch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
the-edge earned 50 total points
ID: 9640147
set the RowHeadersVisible of the datagrid to False:

DataGrid1.RowHeadersVisible = False

the edge
0
 

Author Comment

by:rjuch
ID: 9640191
No, that gets rid of column headers, ie. first row.. i want to get rid of that grey 'column' on the left
0
 
LVL 3

Expert Comment

by:the-edge
ID: 9640217
no! this hide the grey column on the left. have you tried it?

the ColumnHeadersVisible property hide/show the column's headers
the RowHeadersVisible property hide/show the row's headers

try it and let me know. i've tried it and it works fine.

the edge
0
 

Author Comment

by:rjuch
ID: 9640247
Sorry man, misread your comment and used columnHEadersVisible :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question