473,461 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Force re-format on databound controls

I have a program that uses displays data with scientific units. The
user can select which particular unit they wish to see the values in
(Kelvin, Celsius, etc...). I have handled this by implementing a
conversion in the Format and Parse events. However, if the user
changes the configuration options, the old values persist until the
row being inspected is changed. (e.g. A textbox displays 273 when the
user has Kelvin selected. If the user changes to Celsius, I want the
value to be shown as zero as soon as the user changes the units,
however it will show 273 until the user changes the row being
inspected, thus calling parse again).

I know I can brute force this fairly easily by manually calling Parse
for the relevant textboxes, but that seems like a terrible idea.

So, I would basically like to force the program to use the
databindings I have set up to reload the data into the textboxes,
without changing the position of the BindingContext of the form.

Any help would be greatly appreciated.

Cheers

- Barry

Nov 13 '07 #1
0 946

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: VB Programmer | last post by:
How do I force a Calendar to "re-process" without having to do a response.redirect to the page. Specifically I want to run the DayRender event of the Calendar.
1
by: Jonas | last post by:
Hi! I'm building an ASP.NET web application that needs an automatic logoff after a specified time out period, forcing the user to enter his/her Windows authentication credentials again. I use...
3
by: ABC | last post by:
I have a web site include three folders: public, admin and member. I place web.config files to admin and members folders only allow admin and members to access. If there are a user login as Demo...
51
by: Paul Gorodyansky | last post by:
Hi, Ran into the following problem while trying to have a code to attach a Virtual Keyboard to any user's form: User clicks a button and my JavaScript changes outerHTML of say <textarea -...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.