PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms DataGridView - Hide record selectors

Reply

DataGridView - Hide record selectors

 
Thread Tools Rate Thread
Old 08-01-2007, 12:30 PM   #1
=?Utf-8?B?Z3JpZw==?=
Guest
 
Posts: n/a
Default DataGridView - Hide record selectors


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,
--
grig
  Reply With Quote
Old 08-01-2007, 12:38 PM   #2
Kevin Spencer
Guest
 
Posts: n/a
Default Re: DataGridView - Hide record selectors

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.

--
HTH,

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

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

"grig" <grig@discussions.microsoft.com> wrote in message
news:2A4E43A6-9114-43BE-B9ED-86F6EFF33197@microsoft.com...
> 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,
> --
> grig



  Reply With Quote
Old 08-01-2007, 12:52 PM   #3
ClayB
Guest
 
Posts: n/a
Default Re: DataGridView - Hide record selectors

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.

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off