Solved

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

Posted on 2004-04-08
2
712 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

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 …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
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…

739 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