PC Review


Reply
Thread Tools Rate Thread

databinding a textbox to a string

 
 
Kyle Rowe
Guest
Posts: n/a
 
      9th Feb 2005
Hi,

Is there a way to databind a textbox to a string?


Thanks


 
Reply With Quote
 
 
 
 
Frans Bouma [C# MVP]
Guest
Posts: n/a
 
      10th Feb 2005
Kyle Rowe wrote:
> Hi,
>
> Is there a way to databind a textbox to a string?


You can only setup databinding between a control's property and an
object's property (simple binding) or pass a collection to a DataSource
property of a complex bindable control (complex binding).

You can't setup binding between a string and a property.

Frans

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
databinding checkBoxList to a Dictionary<string, string> object Andy B Microsoft ASP .NET 0 21st Apr 2008 07:40 PM
Re: simple databinding of a simple string to textbox Robert Ludig Microsoft C# .NET 0 5th Oct 2004 11:07 AM
simple databinding of a simple string to textbox Robert Ludig Microsoft C# .NET 3 4th Oct 2004 02:42 PM
simple databinding of a simple string to textbox Robert Ludig Microsoft C# .NET 0 4th Oct 2004 03:40 AM
DataBinding TextBox Pranav Shah Microsoft C# .NET 0 12th Jan 2004 10:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 PM.