Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing Column Controls in Grid at Runtime
Message
From
01/07/1999 07:11:01
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
30/06/1999 15:58:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00236050
Message ID:
00236358
Views:
11
Eric,

Yes, no information was showing up, also no textbox was showing off. I had the .Visible property set to .F.

Oops!!!

Thanks

Rex

>>All,
>>
>>I am replacing column controls at runtime with custom classes in a grid. After the substitution, the controls no longer contain any information. What am I doing wrong? The code is as follows:
>>
>>LOCAL ;
>> loColumn,;
>> lcCurrentControlName,;
>> lcAddingControlName
>>
>>FOR EACH loColumn IN This.Columns
>> IF EMPTY(This.aControlType[loColumn.ColumnOrder])
>> LOOP
>> ENDIF
>> lcAddingControlName = This.aControlType[loColumn.ColumnOrder]
>> lcCurrentControlName = loColumn.CurrentControl
>> WAIT WINDOW "Now exchanging " + lcAddingControlName + " for " + lcCurrentControlName NOWAIT
>> loColumn.RemoveObject(lcCurrentControlName)
>> loColumn.AddObject(lcCurrentControlName,lcAddingControlName)
>> loColumn.CurrentControl = lcCurrentControlName
>>ENDFOR
>
>What do you mean they don't contain information? They don't display the data?
Previous
Reply
Map
View

Click here to load this message in the networking platform