Exemple #1
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            DataView  dataView = (DataView)MyDataSource.Select(DataSourceSelectArguments.Empty);
            DataTable table    = dataView.ToTable();

            TextBox1.Text = table.Rows[0].ItemArray[1].ToString();
            TextBox2.Text = table.Rows[0].ItemArray[2].ToString();
            TextBox3.Text = table.Rows[0].ItemArray[3].ToString();
            TextBox4.Text = table.Rows[0].ItemArray[5].ToString();
            TextBox5.Text = table.Rows[0].ItemArray[4].ToString();
            TextBox6.Text = table.Rows[0].ItemArray[6].ToString();
        }