Groups | Blog | Home
all groups > vb.net controls > june 2006 >

vb.net controls : Grid control



Bob
6/9/2006 12:04:42 PM
Hello everyone:

I am a VB 6.0 programmer, and I am slowly trying to convert to VB.NET. In
VB 6, I was using quite a bit the MSHflexgrid control. This grid control
was not attached to any database or anything. I simply used it to display
information to the user, and get information from the user such as a matrix.
I was wondering if in vb.Net, there is such a grid control that is not
attached to any databases?

Also, in vb.net, how do you add or remove controls to a project?

I appreciate all your helps.

Bob

PJ6
6/9/2006 8:05:19 PM
In response to your last question, right-click inside the tab you are
interested in adding controls to, and select "Choose Items...".

In response to your first question, I don't believe there are any built-in
DotNet grids that are not designed specifically for data binding, however
you can add any legacy ActiveX controls you need if you really, really want
to (not recommended).

I would suggest you try FlexGrid from ComponentOne. I've used it since 1998.
As grid controls go, it's one of the best.

Paul

[quoted text, click to view]

GhostInAK
6/11/2006 11:24:29 PM
Hello Bob,

The regualr DataGrid (or DataGridView in vs05) will work for you rpurposes.
You just need to fill a DataTable by hand (no need to connect to a real
database) and bind the control to the DataTable.

-Boo

[quoted text, click to view]

Bob
6/12/2006 12:21:03 PM
Thanks for your reply. Do you have any example or where I can get one? In
the VB 6, I used the textmatrix property of the grid.

Bob

[quoted text, click to view]

Bob
6/12/2006 12:23:11 PM
Thanks Paul. I actually have the ComponentOne tools that they offered for
free a while ago. However, I did not know that they have a .Net version as
well. I guess, I will try it. Thanks for your help.

Bob

[quoted text, click to view]

GhostInAK
6/14/2006 12:00:00 AM
Hello Bob,

Just make a datatable and set the grid.datasource = it.


[quoted text, click to view]

AddThis Social Bookmark Button