Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MemberClass Question
Message
From
25/10/2005 11:54:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01061888
Message ID:
01061899
Views:
15
>I want to replace grid column headers with a custom header.
>
>Can I use the MemberClass property somehow to do this? How?

If you'd change the column class yes. Otherwise you need HeaderClass*. After creating a grid on form you could do this:
-Select the grid
-Go to command window
-Invoke a code editor - ie: modi comm
LOCAL lcCaption
Aselobj(aGrd)
With aGrd[1]
  For ix=1 To .ColumnCount
    With .Columns(m.ix)
      lcCaption = .Header1.Caption
      .HeaderClassLibrary = "myHeaderLib.prg"
      .HeaderClass = "myHeader"
      .myHeader1.Caption = m.lcCaption
    Endwith
  Endfor
Endwith
-Select code and execute (adjust classlib, class, object names).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform