Results 1 to 10 of 10

Thread: Flexgrid?

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Flexgrid?

    Is there an equivalent of VB6's flexgrid in VB.NET?

    I was trying to use the DataGrid, but I think that the DataGrid can only be bound in this case.

    So, is there a flexgrid.net?

  2. #2

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Feel the city breaking and everybody shakin'...

    Stayin' alive, stayin' alive....

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    There's nothing to stop you using the old version.

    Right click the toolbox, Add / Remove...

    Com Components tab, scroll down to "Microsoft Flexgrid... Version 6"

    Check the box and OK.

    The control should appear at the BOTTOM of the toolbox.

    I don't live here any more.

  4. #4

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    If I'm not mistaken, VS.NET creates a wrapper around the FlexGrid, right? Isn't that somewhat inefficient, or is that acceptable?

  5. #5
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    I reckon its OK if you really prefer to use a flexgrid and the datagrid is not suitable.

    The alternative is to derive the Datagrid yourself and make the necessary alterations. This would probably take quite a while and may not be worth the trouble.

    I'd go with the flexgrid approach, but then I'm not as skilled as the gurus around here.
    I don't live here any more.

  6. #6

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Thanks Des!


  7. #7
    New Member Sisyphus's Avatar
    Join Date
    Oct 2003
    Location
    Yangon, Myanmar
    Posts
    6
    I'm also searching the counterpart of the FlexGrid for .NET.
    we can use the MS.FlexGrid 6.0 in .NET but unfortunately, I can't use that because my project is going with a font that comes with Unicode 3.0. (which includes Myanmar Language character set which I've to use mainly). sorry that FlexGrid 6.0 does not support Unicode 3.0.

    I've searched for many grids that can be use as like as flexgrid and end up with two components.
    One is from VideoSoft namely VideoSoft FlexGrid 7.0 (http://www.videosoft.com) and other one is from ComponentOne namely C1 FlexGrid for .NET 1.1 (http://www.componentone.net).(and I've noticed that ComponentOne is formerly the VideoSoft itself) VS FlexGrid 7.0 is a COM component and C1 FlexGrid is an .NET assembly file.

    you can download the demo versions but I think it's quite expensive to buy one.
    try these and have fun
    Sisyphus
    (The one who put the boulder onto the mountain)
    Thanks to all

  8. #8

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Sisyphus

    I'vsearched for many grids that can be use as like as flexgrid and end up with two components.
    One is from VideoSoft namely VideoSoft FlexGrid 7.0 (http://www.videosoft.com) and other one is from ComponentOne namely C1 FlexGrid for .NET 1.1 (http://www.componentone.net).(and I've noticed that ComponentOne is formerly the VideoSoft itself) VS FlexGrid 7.0 is a COM component and C1 FlexGrid is an .NET assembly file.

    Yes, our company has purchased their enterprise suites, the complete works, so I do have access to that. I was only trying to see if there was a flexgrid.net

    you can download the demo versions but I think it's quite expensive to buy one.
    NO probs there, luckily.

    Sisyphus
    (The one who put the boulder onto the mountain) [/B]
    If I'm not mistaken, he's the one who has to push the boulder all the way up the mountain, and then it rolls down, and back he goes. He'll be repeating this for all eternity.

    AND, he was a bad guy!

    Am I right?

  9. #9
    Lively Member
    Join Date
    Jun 2004
    Location
    Philippines
    Posts
    125
    you could also define your columns manually...i used this code and it worked for me...

    Dim Col1 As New DataColumn()
    Dim Col2 As New DataColumn()
    Dim Col3 As New DataColumn()
    Dim Col4 As New DataColumn()
    Dim Col5 As New DataColumn()
    Dim Col6 As New DataColumn()
    Private Sub FormatGrid()

    'Repeat the same procedure
    'Define Column 1

    Col1.DataType = System.Type.GetType("System.String")
    Col1.ColumnName = "ProductID"
    Col1.Caption = "ProductID"
    Col1.ReadOnly = True
    Tbl.Columns.Add(Col1)
    'Define Column 2
    Col2.DataType = System.Type.GetType("System.Decimal")
    Col2.ColumnName = "Qty"
    Col2.Caption = "Qty"
    Col2.ReadOnly = False
    Tbl.Columns.Add(Col2)
    'Define Column 3
    Col3.DataType = System.Type.GetType("System.Decimal")
    Col3.ColumnName = "SRP"
    Col3.Caption = "SRP"
    Col3.ReadOnly = True
    Tbl.Columns.Add(Col3)
    'Define Column 4
    Col4.DataType = System.Type.GetType("System.Decimal")
    Col4.ColumnName = "SplPrice"
    Col4.Caption = "Special Price"
    Col4.ReadOnly = True
    Tbl.Columns.Add(Col4)
    'Define Column 5
    Col5.DataType = System.Type.GetType("System.Decimal")
    Col5.ColumnName = "Total"
    Col5.Caption = "Total Price"
    Col5.ReadOnly = True
    With Col5
    .Expression = "Qty*SplPrice"
    End With
    Tbl.Columns.Add(Col5)
    'Define column 6
    'Specify the column data type
    Col6.DataType = System.Type.GetType("System.Int32")
    'This name is to identify the column
    Col6.ColumnName = "No"
    'This will enable automatically increment the data
    Col6.AutoIncrement = True
    'This value will be displayed in the header of the column
    Col6.Caption = "Count"
    'This will make this column read only,Since it is autoincrement
    Col6.ReadOnly = True
    'Now add this column to the datatable
    Tbl.Columns.Add(Col6)
    'BIND THE DATATABLE TO THE DATAGRID
    DataGrid1.DataSource = Tbl
    End Sub

    then just call the function in your form load..

    i'm not a very good programmmer but i sure hope this is ok...

  10. #10
    Junior Member
    Join Date
    Jun 2004
    Posts
    29

    No flexgrid by microsoft

    There is no equivalent to flex grid control in .net. C1flexGrid is a good alternate but in case you have some specific requirements.
    The data grid has a changed architecture than the previous grids.
    Mendhak is right regarding the COM Interlope services but it won’t affect the performance a lot. But Microsoft does not suggest using Com Controls.

    The C1Flexgrid works on rows and column architecture. In case your requirements need such kind of grid use it as it's bit heavy.
    Give me a place to stand and I will move the Earth

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width