Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How should I get MS Flex Grid control in VB.net? 2

Status
Not open for further replies.

rcreddych

Programmer
Dec 15, 2002
1
IN
I am developing an application in VB.NET. I want MS FlexGrid control which was available in VB 6. It is not available in toolbox. How I get it?

plz let me know.

thanks in advance.
RC
 
I personally wouldn't use that control in .NET, as it's a COM component, and it'll be insanely slow due to all the Interop calls that will be made.

I'd contact the vendor to see if they have a native .NET control you can use.

Chip H.
 
Have you tried looking at the .NET DataGrid control? You can "probably" do everything in it that you used to do in the FlexGrid.
 
Hi ,
I have the same problem with anyone who use Flexgrid control. Now I lost it. I don't know how to use Datagrid control in my case since I actually not need to bound it to any data source. I just want to be able to populate grids with certain colums and header and fill in the text.
For example, I have an Purchase Order form have 5 columns.
With FlexGrid, here how I usually did.
Grid1.Cols = 5
Grid1.Textmatrix(0,0) = "Line #"
grid1.TextMatrix(0,1) = "Item ID"
grid1.textmatrix(0,2) = "Item Desc"
grid1.textmatrix(0,3) = "Qty Order"
grid1.textMatrix(0,4) = "Amount"

Then when user add an item in the list of Order, I just fill all the info in with:

grid1.AddItem "1" & vbtab & "56789A" & vbtab & "Shirt" & vbTab & "2.0" & "34.29"
and so on...

Please help if you know how to populate this in vb .net. It was so easy with flex grid and now... I spend hours to find the way to implement this simple form...

Thanks in advance,
Anh

 
I use the componentone flexgrid or c1flexgrid, the componentone controls are included in the vb.net resource kit and are completely free.

if you need to use the datagrid I would make a dataset and bind that to the datagrid. Datasets dont need to be attached to a table you can make them by adding datacolumns and datarows.

Christiaan Baes
Belgium

What a wonderfull world - Louis armstrong
 
Hi Chrissie1,

Can you focus on a particular cell wit the controls you mentioned? I am trying to do a NET project similar to one I did in 6. I used the FlexGrid in 6 and could set certain cells to certain colors, change the text iny any cell at any point. It seems that everything with the DataGrid has to be a column thing.

Thanks in advanced ~ Becca

 
Check out the C1 (Component 1) Flex grid. It's not exactly the same as the MS Flex Grid, but it can do pretty much all of the same stuff, and has more things built in.

If you really want to use the VB6 Flex Grid, you can, but you have to have VB6 installed. You can add a reference to the Flex Grid COM object in .Net, but the FG has a license issue that still requires VB6 to be installed.

-Rick

----------------------
 
Hi ThatRickGuy,

Is the Component 1 Flex Grid you refer to the one that comes with the resource kit? I found a resource kit on the Internet with a Component1 FlexGrid but they wanted close to $3000 for it. I am not set on anything -- just getting a little fustrated!!

Thanks for responding ~ Becca

 
It should be. At the shop here I think we have the Component 1 package. But I'm almost positive that if you install just the resource kit you should get the same flex grid.

-Rick

----------------------
 
Hi ThatRickGuy,

Just an FYI ...

You can buy the ComponentOne package for about $700. Or, you can have Microsoft send you the VB Resource Kit for $11 S/H and they will give you a license. If you download the VB Resource Kit from the Microsoft website, you don't get the free license. Doesn't make any sense but for $11, it's not a bad deal :)

I have been working with the trial and it seems to be a pretty good control.

Thanks again!! ~ Becca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top