Hide datagrid row selector

  • Thread starter Thread starter Vayse
  • Start date Start date
V

Vayse

How do I hide the rowselector on a datagrid?
Also, it there a way of changing its width?

By row selector, I mean the that grey column on the left hand side, where
the arrow appears when you click into a row.
Thanks
Vayse
 
Vayse said:
How do I hide the rowselector on a datagrid?
Also, it there a way of changing its width?

By row selector, I mean the that grey column on the left hand side, where
the arrow appears when you click into a row.
Thanks
Vayse

To remove the row header try:
RowHeadersVisible = False

If you apply a datagridtablestyle you need to set it to false in there
too. I've never seen a way to change it's width, but doesn't mean you
can't do it...

Chris
 
Thanks guys, but thats not it.
Even with the rowheaders hidden, the rowselector still appears. Any other
ideas?
 
Vayse,

What kind of datagrid are you using, if I use this and the columnheader
visible is false, than I see only rows and items while one of the items is
selected.

Cor
 
That should go as Chris and I almost have answered you in the same time.

Chris gave you even more code than me completly it is.

MyDatagrid.RowHeadersVisible = False

I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top