Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

beginner problem with SQL

Status
Not open for further replies.

paullb

Programmer
Jun 27, 2006
5
CZ
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top