Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with data binding
Message
 
To
21/01/2009 15:40:11
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01375705
Message ID:
01376332
Views:
13
>Hi Linda,
>
>>I have a form in which the controls are bound to an alternate table in the biz object. For example, the biz object is OfficeNote and the table is AssignmentNote. I have a text box which has a BindingSource of "OfficeNote" and a BindingSourceMember of AssignmentNote.CompletedBy. When the user clicks on the button to "Complete" the note, I have a line of code in the click method as follows:
>>
>>     this.txtCompletedBy.Text = mmAppDesktop.UserMgr.UserID;
>>
>>
>>When I save the row, the CompletedBy column is not filled in.
>>
>>I ended up changing this to get a reference to the DataRow and assigning the value to the datarow column but I don't understand why assigning the value to the control's text property didn't work? Did I miss something?
>>
>>Thanks.
>
>I am not sure I understand. If the business object for CompletedBy is AssignmentNote, why is the BindingSource set to OfficeNote? What is the relation between this field and the OfficeNote business object?
>Tim

The business object is OfficeNote but I have a table defined within OfficeNote, a subset of OfficeNote, if you will, which has the name AssignmentNote (all office notes with a note type of 'AN'). I don't really see why the binding should be an issue. When data is typed directly into the other text boxes on the page which have the same type of binding, the values are saved with no problem. It is only when I have a value stored to the Text property of the mmTextBox control through code that I have a problem.
Linda
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform