Data binding on usercontrol does not work
- From: "Tsair" <lstsair@xxxxxxxxx>
- Date: Fri, 17 Feb 2006 02:20:06 +0700
I do a custom user control with a textbox and button control and binding the
data to Text property, when i save the record it does not save into table.
Any wrong in my code ?
namespace winControl
{
[System.ComponentModel.DefaultBindingProperty("Text")]
public partial class DateTimeTextBox2 : UserControl
{
public DateTimeTextBox2()
{
InitializeComponent();
}
[System.ComponentModel.Bindable(true), Browsable(true), Category
("Behavior"), Description("Date and Time displayed")]
public override string Text
{
get { return this.textBox.Text;}
set { this.textBox.Text = value; }
}
}
}
.
- Follow-Ups:
- Re: Data binding on usercontrol does not work
- From: Tsair
- Re: Data binding on usercontrol does not work
- Prev by Date: Re: How to cast int to short
- Next by Date: Re: MailAddress string format
- Previous by thread: Doing the Right Thing when designing plugin architectures
- Next by thread: Re: Data binding on usercontrol does not work
- Index(es):