Solved

Hiding winforms Datagrid 'selector' column

Posted on 2003-10-29
4
430 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error in page 3 46
Javascript and Jquery not firing 9 43
compare between entities in entity framework 8 27
ASP.NET MVC 2 8
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…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now