binding to list

Hi every body
I want to know how I can bind datarow fields to controls.I want to bind 3 row to 3 text box at same time . I mean I want to put 3 textbox on my form and each one bind to a field in a row.I tried this with Dataset and table , but all text box will bind to one row.

at seccound time , I dont know how I can bind a text box to a property of an object and whene I change property,force text boxe to refresh its data




Answer this question

binding to list

  • Crax123

    OK if i understand correctly lets assume:

    You have 3 text boxes: txt1,txt2,txt3

    now you want to bind txt1 to the first row (the collumn is not important)

    txt2 to the second row and so on....

    If this is the case and you want all the fully automated features of insert and update data, use 3 BindingSources and eaxh text box will be bind to on of those BindingSources, now you make sure that each binding source is on a different row (and this is very easy to program using next and previous methods....) and you will have the behaviour you wish for.

    Now i might be able to give you a better solutioni f i knew the target of the complex binding. But try what i said...

    Itzik Katzav


  • binding to list