General information
Category:
Coding, syntax and commands
>So that means I should always use Class-based properties.
If you need 'read/write' databinding I think that's so (IAC I can't see a way round it....)
Best,
Viv
>
>
>>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
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only