PC Review


Reply
Thread Tools Rate Thread

Control Refresh Not Working on AddNew

 
 
=?Utf-8?B?Sm9oblQ=?=
Guest
Posts: n/a
 
      23rd Dec 2005
When binding a control to a BindingSource and executing .AddNew on the
binding source, then setting default values on the row, the bound controls do
not show the default values until .ReadValue() is called from the control
binding, even though ControlUpdateMode is set to OnPropertyChanged:

ParticipantDS.ParticipantRow row =
(ParticipantDS.ParticipantRow)((DataRowView)participantBindingSource.Current).Row;

row.LastName="Smith";

lastNameTextBox.DataBindings["Text"].ReadValue();

How do I get the control to show the value without explicitly calling
ReadValue?

Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Working with BindingSource & AddNew Dustin Davis Microsoft VB .NET 2 1st Sep 2006 11:27 PM
AddNew not working - no error given Deanna S via AccessMonster.com Microsoft Access VBA Modules 5 12th Aug 2005 02:15 AM
AddNew of the BindingContext isn't working..... ? Aaron Smith Microsoft VB .NET 6 22nd Dec 2004 05:44 PM
adding grid to working currency manager disables addnew =?Utf-8?B?cG9seW5vbWlhbDVk?= Microsoft ADO .NET 6 23rd Apr 2004 02:31 PM
How to disable DataGrid Control AddNew row? jiatiejun Microsoft ADO .NET 1 4th Nov 2003 09:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:50 AM.