MS Flexgrid Problems

  • 19 years ago

    I am building an ActiveX Control that contains an unbound MS FlexGrid.  


    Problem 1:  I am unable to make the flexgrid's scroll bars visible when the control is compiled into an OCX.  I tried creating a PropertyLet, PropertyGet exposing the flexgrids ScrollBar Property, but this does not help.  I can manually add scrollbars, but I cannot understand why I should have to.  


    Problem 2:  The same FlexGrid control has 15 columns whose ColWidth Properties are set depending on which Columns are selected to be shown; ie :


    If CheckColVisible.Value = VbChecked then
        FlexGrid1.ColWidth(ColNum)=intDefaultColWidth(ColNum) ELSE
       FlexGrid1.ColWidth(ColNum)=0.  
    end if


    This works fine for every column except the last visible column.  If the last visible Column is not Col(14) then there is about 60 pixels (Roughly half a character) of garbage attached to the last visible column.  (The most common use of this ActiveX only displays the first four columns, with other columns being data needed for sorting, filtering and programatic data).  


    Any Thoughts would be helpful.


    Hunter






Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Java is to JavaScript what Car is to Carpet.” - Chris Heilmann