?
Solved

VB .NET: DataGrid - Remove Default Lefthand Column and DataEntry Row

Posted on 2004-04-08
2
Medium Priority
?
714 Views
Last Modified: 2012-06-27
This question refers to the System.Windows.Forms DataGrid

In the DataGrid that I've produced, it has (what I believe to be) the default lefthand column - same format as the header row that contains the current row marker caret (>) and the data entry row (*) as well as an additonal (blank) row at the bottom.

Is there a way to drop or remove these (LH Column & Bottom Row) from the DataGrid? - mine is for information only and I don't need the users select the row or add a new line of data in.
0
Comment
Question by:MarkNethercott
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 12

Accepted Solution

by:
dfiala13 earned 2000 total points
ID: 10786868
dg.RowHeadersVisible = false 'will turn off the rowheaders
dg.ReadOnly = true 'makes the grid without an add row
0
 
LVL 12

Expert Comment

by:dfiala13
ID: 10786880
Can also set these values in the designer.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question