Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids
Message
From
15/11/2001 04:20:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/11/2001 18:52:27
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Grids
Miscellaneous
Thread ID:
00581843
Message ID:
00581934
Views:
21
>I have a grid that I want to set the columns based off the table fields programmatically. Anyone know how I can do that?
with myGrid
* If you don't want to keep format
 .Recordsource = ''
 .ColumnCount = -1
* If you don't want to keep format
 .RecordSource = 'NewAlias'
 with .columns(1)
   .Name = 'myColumn1'
   .ControlSource = 'NewAlias.FieldName1'
   .Header1.Caption = 'Header'
   .Width = 100
 endwith
*...
endwith
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
Reply
Map
View

Click here to load this message in the networking platform