Windows Phone Developers

Monday, January 11, 2010

Binding Text Boxes to Data source in C#/VB.NET in Visual Studio

How to bind textboxes to data source using Visual Studio

Select the TextBox and from the properties window select (Advanced) from DataBindings





From the list of sources select ‘Add Data Source’

Select Appropriate Data Source


When prompted to Save the connection string accept it








The dialog will get the list of data sources.
From the list select the table you want and the columns
Assign the column to the particular text box









this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.forumUsersBindingSource, "ForumUser", true));

Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

1 comment:

  1. .Net Grid makes it easy adding any number of headers, thus changing the presentation from the treelist with a single to multi-header grid.more detail read tutorial on dapfor. com

    ReplyDelete