473,382 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Hide datagrid row selector

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
Nov 21 '05 #1
7 12406
Vayse wrote:
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
Nov 21 '05 #2
Vayse,

I know that it is difficult to find, however it is named the rowheader

http://msdn.microsoft.com/library/de...sibletopic.asp

I hope this helps,

Cor
Nov 21 '05 #3
Thanks guys, but thats not it.
Even with the rowheaders hidden, the rowselector still appears. Any other
ideas?
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OJ*************@TK2MSFTNGP09.phx.gbl...
Vayse,

I know that it is difficult to find, however it is named the rowheader

http://msdn.microsoft.com/library/de...sibletopic.asp

I hope this helps,

Cor

Nov 21 '05 #4
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

"Vayse" <Va***@nospam.nospam> schreef in bericht
news:Oy*************@TK2MSFTNGP10.phx.gbl...
Thanks guys, but thats not it.
Even with the rowheaders hidden, the rowselector still appears. Any other
ideas?
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OJ*************@TK2MSFTNGP09.phx.gbl...
Vayse,

I know that it is difficult to find, however it is named the rowheader

http://msdn.microsoft.com/library/de...sibletopic.asp

I hope this helps,

Cor


Nov 21 '05 #5
Heres a picture of what I mean:

http://tinypic.com/esrt5v.jpg

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eZ****************@TK2MSFTNGP12.phx.gbl...
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

"Vayse" <Va***@nospam.nospam> schreef in bericht
news:Oy*************@TK2MSFTNGP10.phx.gbl...
Thanks guys, but thats not it.
Even with the rowheaders hidden, the rowselector still appears. Any other
ideas?
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OJ*************@TK2MSFTNGP09.phx.gbl...
Vayse,

I know that it is difficult to find, however it is named the rowheader

http://msdn.microsoft.com/library/de...sibletopic.asp

I hope this helps,

Cor



Nov 21 '05 #6
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
Nov 21 '05 #7
Yep, that works. Thanks.

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andrew Chen | last post by:
How do I hide any particular DataGrid Cell from visible, or any DataColumn for the matter?
4
by: jez123456 | last post by:
Not sure if I'm in the right thread but here goes. I have an ASP.Net web page with a datagrid. The code behind is C#. If the datagrid has no records the datagrid header section is still shown....
6
by: Das | last post by:
Hi everyone, I'm using datagrid control to display the data. I want to hide column to be displayed into the data grid. I'm using the code as given below: Method given below is used to bind the...
2
by: Steve B. | last post by:
How can I hide a datagrid row or set it's width to zero. I need to filter the grid and and show only rows with selected data. Steve
4
by: Tim | last post by:
Hi, I am trying to hide the datagrid row header (the left most column that has the 'select' triangle in it which moves with the selected row). It seems to be fairly simple;...
0
by: Bill Borg | last post by:
Hello, I would like to hide an entire template column in a datagrid. I know I can do this by a) adding columns at run-time instead of design-time, b) using Cells(x) to set visible=false at...
2
by: velmj | last post by:
Hi, I have multiple datagrids on my page. I would like to display only one datagrid at a time using a tab buttons. I used a client side javascript function to hide the datagrid which is wrapped...
5
by: Shane Story | last post by:
I have a dataset with two tables. I make data view of each table, connect the parent table to one data grid and the child table to the other datagrid, with a row filter, that gets set when a...
4
by: wassssup | last post by:
i want to know is there a way to check wherether is there data inside a datagrid and hide the datagrid when there isn't any. for example i drag the datagridview from the toolbox and put it on the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.