Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container in Grid Problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01543620
Message ID:
01543625
Views:
29
Naomi,

Thank you for the assistance. Sergei's solution did the trick before I had a chance to try this out.

Dan

>>Hello all,
>>
>>I've wrestled with this before but can't remember the solution or best workaround. In a grid column I have a container with several fields. The bound fields all display the correct info. However, I have one unbound edit box that displays a text string that's a combination of a number of fields (name & address). This control displays the current record info in all rows, rather than each row's data.
>>
>>I've assigned the value of this edit box in the control's refresh and also tried to assign it in Value_assign(). Is there some trick that can make this work? In the past, I believe I've just pre-populated a memo field with the strings to be displayed, but that's not terribly practical in this case.
>>
>>TIA
>
>I solved a very similar problem recently as well - let me try to find my solution.
>
>In the Init of the form:
>
>
>.grdLanguages.columncount = .grdLanguages.columncount + 1
>			lnCount = .grdLanguages.columncount
>			with .grdLanguages.columns[m.lnCount]
>				.name = 'col' + alltrim(csrLanguages.LanguageCol)
>				.width = m.lnWidth
>				.sparse = .f.
>				.removeobject('text1')
>				.newobject('cntLanguage','cntLanguage','Languages.vcx')
>				.cntLanguage.visible = .t.
>				.cntLanguage.lngField = 'Language.' + alltrim(csrLanguages.LanguageCol)
>				.Header1.caption = alltrim(csrLanguages.language)
>				.Header1.fontbold = .t.
>				.Header1.alignment = 2
>			endwith
>
>
>And here is the code in cntLanguage:
>lngField_Assign method:
>
>
>lparameters tlngField
>This.lngField = tlngField
>this.txtLanguage.ControlSource = this.lngField
>
>And everything seems to work just fine with that.
>
>See attached screen shot:
Previous
Reply
Map
View

Click here to load this message in the networking platform