Solved

Hiding winforms Datagrid 'selector' column

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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