How to Display Data on MS FlexGrid

To do this,first you must add this control to your  form layout , just right click the tool box
pane, at the pop up menu just click components,and the Control  Dialog appear,then hunt
Microsoft FlexGrid Control (SP6),then mark check the box then hit the Apply button,finally
Microsoft FlexGrid Control (SP6) is on your tool box,just drag it on your form then lets do
the Action,

Tip: you can modify this control by simply right-click on it then
click properties,like shown on the image below


















the code will look like this:



With Grid1


    .Cols = 3 'this will add 3 columns
    .ForeColor = vbBlue 'modified  the forecolor to blue
    .TextMatrix(0, 0) = "Adrian" 'Column Header
    .TextMatrix(0, 1) = "Abelon" 'Column Header
    .TextMatrix(0, 2) = "Panoy"  'Column Header
    .ColWidth(0) = 1500  'modified width
    .ColWidth(1) = 1500 ' modified width
    .ColWidth(2) = 1500 ' modified width
    .Rows = 1 'this will display at first Row
    .AddItem "BSCS" & vbTab & "BSCS" & vbTab & "BSCS"
'the data you've been displayed in grid

End With

and the output is >>>>>>

















Happy Coding ^_^
The Hardest Thing to Do is to Do Nothing ^_^
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Leave a comment

Copyright @ Codes-47.Blogspot.Com. Powered by Blogger.