Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-04-08
2
Medium Priority
?
717 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

609 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