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 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
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
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andrew Chen |
last post by:
How do I hide any particular DataGrid Cell from visible,
or any DataColumn for the matter?
|
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....
|
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...
|
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
|
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;...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |