المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : TextBox DataBindings doesn't work...



C# Programming
11-28-2009, 11:30 PM
hi there,
i am trying to bind a textBox with a MS-SQL table fiels in this way:

dataAdapter.Fill(dataSet, tableName);
textBox.DataBindings.Add("Text", dataSet.Tables[tableName], "someField");

the thing is, that while using dataAdapter.Fill() method, the textBox is really filled...BUT when i am making changes in the textBox the modification doesn't reflect in the DB.

what am i missing in order to make this bind 2-way???

thx!