<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FDatabase_ADO.net%2FData_Bind_Label</id>
		<title>Csharp/C Sharp/Database ADO.net/Data Bind Label - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FDatabase_ADO.net%2FData_Bind_Label"/>
		<link rel="alternate" type="text/html" href="http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Database_ADO.net/Data_Bind_Label&amp;action=history"/>
		<updated>2026-04-13T20:18:45Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Database_ADO.net/Data_Bind_Label&amp;diff=1005&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Database_ADO.net/Data_Bind_Label&amp;diff=1005&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Database_ADO.net/Data_Bind_Label&amp;diff=1006&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.nfex.ru/index.php?title=Csharp/C_Sharp/Database_ADO.net/Data_Bind_Label&amp;diff=1006&amp;oldid=prev"/>
				<updated>2010-05-26T11:42:41Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Bind DataSet to Label==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Data.SqlClient;&lt;br /&gt;
   public class Form1 : System.Windows.Forms.Form {&lt;br /&gt;
      private System.Windows.Forms.Label label1;&lt;br /&gt;
      private System.Windows.Forms.Label label2;&lt;br /&gt;
      private System.Data.DataSet dataSet1;&lt;br /&gt;
 &lt;br /&gt;
      private System.ruponentModel.Container components = null;&lt;br /&gt;
      public Form1(){ &lt;br /&gt;
 &lt;br /&gt;
         InitializeComponent();&lt;br /&gt;
      }&lt;br /&gt;
      private void InitializeComponent() {&lt;br /&gt;
         this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
         this.label2 = new System.Windows.Forms.Label();&lt;br /&gt;
         this.dataSet1 = new System.Data.DataSet();&lt;br /&gt;
         ((System.ruponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();&lt;br /&gt;
         this.SuspendLayout();&lt;br /&gt;
 &lt;br /&gt;
         this.label1.Location = new System.Drawing.Point(16, 8);&lt;br /&gt;
         this.label1.Name = &amp;quot;label1&amp;quot;;&lt;br /&gt;
         this.label1.Size = new System.Drawing.Size(72, 16);&lt;br /&gt;
         this.label1.TabIndex = 0;&lt;br /&gt;
         this.label1.Text = &amp;quot;label1&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
         this.label2.Location = new System.Drawing.Point(16, 40);&lt;br /&gt;
         this.label2.Name = &amp;quot;label2&amp;quot;;&lt;br /&gt;
         this.label2.Size = new System.Drawing.Size(72, 16);&lt;br /&gt;
         this.label2.TabIndex = 1;&lt;br /&gt;
         this.label2.Text = &amp;quot;label2&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
         this.dataSet1.DataSetName = &amp;quot;NewDataSet&amp;quot;;&lt;br /&gt;
         this.dataSet1.Locale = new System.Globalization.CultureInfo(&amp;quot;en-GB&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
         this.ClientSize = new System.Drawing.Size(128, 69);&lt;br /&gt;
         this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                                                      this.label2,&lt;br /&gt;
                                                                      this.label1});&lt;br /&gt;
         this.Name = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
         this.Text = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
         this.Load += new System.EventHandler(this.Form1_Load);&lt;br /&gt;
         ((System.ruponentModel.ISupportInitialize)(this.dataSet1)).EndInit();&lt;br /&gt;
         this.ResumeLayout(false);&lt;br /&gt;
      }&lt;br /&gt;
 &lt;br /&gt;
      static void Main() {&lt;br /&gt;
         Application.Run(new Form1());&lt;br /&gt;
      }&lt;br /&gt;
      private void Form1_Load(object sender, System.EventArgs e) {&lt;br /&gt;
         string connString = &amp;quot;server=(local)\\SQLEXPRESS;database=MyDatabase;Integrated Security=SSPI&amp;quot;;&lt;br /&gt;
    &lt;br /&gt;
         string SQL = @&amp;quot;select * from employee&amp;quot;;&lt;br /&gt;
         SqlConnection Conn = new SqlConnection(connString);&lt;br /&gt;
         SqlDataAdapter da = new SqlDataAdapter(SQL, Conn);&lt;br /&gt;
         da.Fill(dataSet1, &amp;quot;employee&amp;quot;);&lt;br /&gt;
         // Bind the Label&amp;quot;s Text property to the ProductID of the Products table&lt;br /&gt;
         label1.DataBindings.Add(&amp;quot;Text&amp;quot;, dataSet1, &amp;quot;employee.ID&amp;quot;);&lt;br /&gt;
         // Bind the second label&amp;quot;s Text property to the UnitPrice column&lt;br /&gt;
         label2.DataBindings.Add(&amp;quot;Text&amp;quot;, dataSet1, &amp;quot;employee.firstname&amp;quot;);&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>