Hi,
I have beginner problem with. Db-sql. My situation:
I have sql-Connection, DataSet, sql-Data adapter. On the first Form is gride. (it ok) and next I have Form2 and there I have Edit line and next component. I wane to show there selected line (data row) from gride. Whne I try make dataset (inherited by DataSet on from 1) and connected by command :
Form2.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet1, "v_contact.people_name"));
It doesn’t work. When I show form 2. In textbox is pointed on first record in gride.
Then I think that I made manual. Get selected row and try by the help of dataset insert in forms. But, I don’t know how.
Maybe is complicated and non effected. Do you have any idea?
Thanks
Paul
I have beginner problem with. Db-sql. My situation:
I have sql-Connection, DataSet, sql-Data adapter. On the first Form is gride. (it ok) and next I have Form2 and there I have Edit line and next component. I wane to show there selected line (data row) from gride. Whne I try make dataset (inherited by DataSet on from 1) and connected by command :
Form2.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet1, "v_contact.people_name"));
It doesn’t work. When I show form 2. In textbox is pointed on first record in gride.
Then I think that I made manual. Get selected row and try by the help of dataset insert in forms. But, I don’t know how.
Maybe is complicated and non effected. Do you have any idea?
Thanks
Paul