Solved

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

Posted on 2004-04-08
2
711 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 500 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

Suggested Solutions

Title # Comments Views Activity
Object Oriented Programming, C#, referencing, scoping. 13 84
Convert Ctime to date time in textfile? 7 60
Reactjs with .NET 3 70
Installing .NET 3.5 on Windows Server 2012 1 57
Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

740 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