[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 970
  • Last Modified:

VB.net DataGridView - only allow rows to be added programmatically

Hi

I have a DataGridView on a Windows form where I only want to add rows programmatically.
I don't want users to add rows. How do I do this?

Thanks
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Robert SchuttSoftware EngineerCommented:
Just set the property AllowUserToAddRows to False.
captureor programmatically:
DataGridView1.AllowUserToAddRows = False

Open in new window

0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Great! Thanks very much
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Tackle projects and never again get stuck behind a technical roadblock.
Join Now