Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control Refresh() Method
Message
From
07/07/2004 17:33:48
 
 
To
07/07/2004 17:26:14
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00921607
Message ID:
00921637
Views:
13
Steve,

You're doing the DataBinding right. It's just that sometimes a current row needs an .EndEdit() to properly finish the edits on the row (but not always and I don't really know when it's a problem and when it's not). Anyway, if you're expecting your ListBox to reflect a new value in a TextBox after the data has been entered into the TextBox, then you should maybe do an .EndEdit() in the .Validate() of the TextBox. If it's somewhere else (like when you click on a button or whatever), you'll need to put the .EndEdit() in the appropriate event.

~~Bonnie

>Hello Bonnie,
>
>Okay, I thought I had provided enough info. I'm using a bound textBox to change the values. When form loads:
>
>txtBound.DataBindings.Add("Text" ,
>   dsCities.Tables["Cities"],"Name");
>
>
>Is that a no, no? I'm trying to learn how bound controls work, and I'm finding it to be a beating. Related followup thread to follow.
>
>>It's always the old Rows.EndEdit() that comes back to bite you in the behind. I suspect that there's where your problem lies. You shouldn't have to do a .Refresh() or jump through any of the hoops you've tried as a workaround. Your bound table needs an EndEdit() on the row you just changed and that should take care of your problem.
>>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform