Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

DataGridView - Hide record selectors

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
grig - 08 Jan 2007 12:30 GMT
I'd like to know how to hide record selectors in a DataGridView. (record
selectors - I do not know if this is the correct name, but this is the name
in an MS Access grid)

Thank you,
Signature

grig

Kevin Spencer - 08 Jan 2007 12:38 GMT
I'm not sure exactly what you're referring to, but if you're talking about
the RowHeaders (the blank cells at the beginning of each row, used to select
the row), you can set the DataGridView.RowHeadersVisible property to false.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

Where there's a Will, there's a William.

> I'd like to know how to hide record selectors in a DataGridView. (record
> selectors - I do not know if this is the correct name, but this is the
> name
> in an MS Access grid)
>
> Thank you,
ClayB - 08 Jan 2007 12:52 GMT
If you want to keep the row headers, but lose the black triangle that
marks the current record, you can 'pad' it out of sight with this
property setting.

this.dataGridView1.RowHeadersDefaultCellStyle.Padding = new
Padding(this.dataGridView1.RowHeadersWidth);

==============
Clay Burch
Syncfusion, Inc.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.