Ejemplo n.º 1
0
        private void bindingSource1_PositionChanged(object sender, EventArgs e)
        {
            int iRow = bindingSource1.Position;

            MusicDataSet.TitleDataTable dt = ds.Title;
            MusicDataSet.TitleRow       dr = dt[iRow];
            textBox2.Text = dr.Song;
        }
Ejemplo n.º 2
0
        private void button5_Click(object sender, EventArgs e)
        {
            int iRow = bindingSource1.Position;

            //DataTable dt = ds.Tables["Title"];
            //DataRow dr = dt.Rows[0];
            //textBox2.Text = dr["Song"].ToString();
            //textBox2.Text = ds.Tables["Title"].Rows[0]["Song"].ToString();

            MusicDataSet.TitleDataTable dt = ds.Title;
            MusicDataSet.TitleRow       dr = dt[iRow];
            textBox2.Text = dr.Song;
            // textBox2.Text = ds.Title[0].Song;
        }