FlexGrid


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: FlexGrid

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    FlexGrid

    [Originally posted by XTC]

    Does anyone have a good site that will have some good code for programming the MSflexGrid? I am trying to code in the headers for the columns? I know this is basic but i havent coded the flexgrid very much? Thx

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:FlexGrid

    [Originally posted by Gordon]

    I don't know of any sites, but this is what I use in one of my programs...hope it helps.

    --
    Gordon

    ***code starts***

    'set up grid column info; ColWidth = 0 to hide some columns
    Dim strGridFormat As String
    strGridFormat = ">Item |<Type |<Line# |<LaborType |<Task |<Description |>PrtTyp |>PrtNum |>PrtEst |>PrtActual |>LabEst |>LabActual |>Sublet |>Difference |>Mat'lFee |>Gst |>Pst "
    grdSupTasks.FormatString = strGridFormat
    With grdSupTasks
    .ColWidth(1) = 650 'Add or Change
    .ColWidth(2) = 500 'Line number to change
    .ColWidth(3) = 900 'Labor type
    .ColWidth(4) = 1400 'Task
    .ColWidth(5) = 2500 'Description
    .ColWidth(6) = 700 'PartType
    .ColWidth(7) = 800 'Part Num/Description
    .ColWidth(8) = 800 'Estimated Parts Price
    .ColWidth(9) = 800 'Actual Parts Price
    .ColWidth(10) = 800 'Estimated Labor
    .ColWidth(11) = 800 'Actual Labor
    .ColWidth(12) = 800 'Sublet
    .ColWidth(13) = 800 'Difference
    .ColWidth(14) = 800 'Material Fee
    .ColWidth(15) = 800 'Gst
    .ColWidth(16) = 800 'Pst
    ***code ends****

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center