r/visualbasic • u/audiyon • Feb 12 '16
[HELP][Visual Studio Community 2015] Is there a way to make an editable excel-like table on a VB form?
I'm trying to make a program that deals with arrays of numbers and allows users to input data in a table which can then be read and altered by the program. I'd like this table to be of variable length definable by the program, but with a fixed number of columns, and have a scrollbar which only scrolls the table. This is a mockup of what I'm looking to do. I don't need it to work like an excel, that is, it doesn't need to be able to solve formulas or be formattable or any of that, I just want the data entry to be just like excel. I have been searching everywhere trying to find if this is possible, or if there is another programming language that could better handle this. Thanks!
5
Upvotes
5
u/hdsrob Feb 12 '16
I think the DataGridView would do what you want.
It's a grid control that's designed to deal with data in rows and columns (generally in a fixed column width, and a variable number of rows).