Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding Struct properties to Textboxes
Message
From
11/02/2008 13:40:43
 
 
To
11/02/2008 12:54:53
Irv Adams
MSC Managed Care, Inc.
Florida, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01291541
Message ID:
01291562
Views:
8
This message has been marked as the solution to the initial question of the thread.
Hi,

Don't think you can use Structs in this way - they are value based so when you use Databindings.Add() they get boxed and your textbox will be seeing this copy....
HTH,
Viv

>I have a Winform with a Textbox bound to a Class property and a Textbox bound to a Struct property. I set both of them using Databindings.Add() and I see the underlying data values correctly.
>
>However, I cannot update the textbox Text with the Struct-based property using Databindings[0].Readvalue() but it works for the Class-based property.
>
>The Struct property will refresh Textbox if I reset with Databindings.Clear() and then Add() but I don't want to fully reset each time.
>
>Any ideas, thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform