471,605 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Usercontrol databinding on property Text

[System.ComponentModel.Bindable(true), Browsable(true),
Category("Behavior"), Description("Text displayed")]

public override string Text

{

get { return this.textBox.Text; }

set

{

this.textBox.Text = value;
}

}

I change the usercontrol TextBox value from original data value "A001" to
"A002", when I issue update method, the value assign back as "A001" again,
than my data remaind not change, how to solve this problem ?


Feb 23 '06 #1
1 2635
You should add a couple more attributes to the Text property override.
http://groups.google.com/group/micro...cb94cfe5?hl=en

--
Tim Wilson
..NET Compact Framework MVP

"Tsair" <ls*****@yahoo.com> wrote in message
news:e$**************@TK2MSFTNGP10.phx.gbl...
[System.ComponentModel.Bindable(true), Browsable(true),
Category("Behavior"), Description("Text displayed")]

public override string Text

{

get { return this.textBox.Text; }

set

{

this.textBox.Text = value;
}

}

I change the usercontrol TextBox value from original data value "A001" to
"A002", when I issue update method, the value assign back as "A001" again,
than my data remaind not change, how to solve this problem ?

Feb 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Pete Davis | last post: by
1 post views Thread by Edgardo Rossetto | last post: by
13 posts views Thread by Michael Maes | last post: by
1 post views Thread by Giovanni | last post: by
6 posts views Thread by MeowCow | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.