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!

MS Flex Grid Problems

Status
Not open for further replies.

WHM

Programmer
Jul 24, 2001
48
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top