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...
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.
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.
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.
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!!
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.