473,785 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Knowing when DataBinding is completed?

Hello.

I am using databindings to bind my dataset to comboboxes, textboxes and
labels. Some of my UI depends on knowing when the user changes the values,
but I have some problems knowing when my dataset value is set in the
controls.

- SelectedIndexCh anged event fires during the bind process, so I can't just
use that
- The binding don't seem to "kick in" until the tab page where the control
is is focused

Is there some advice out there? Thank you in advance.

- Niklas Ringdahl
Nov 17 '05 #1
2 2666
Niklas,

You should get the BindingManagerB ase (or whatever class is derived from
that, usually a CurrencyManager ) and register an event handler for the
BindingComplete event (if you want to check when binding occurs) or the
CurrentComplete d or CurrentItemChan ged if you want to see when specific
items change.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Niklas Ringdahl" <Ni************ @discussions.mi crosoft.com> wrote in
message news:1A******** *************** ***********@mic rosoft.com...
Hello.

I am using databindings to bind my dataset to comboboxes, textboxes and
labels. Some of my UI depends on knowing when the user changes the values,
but I have some problems knowing when my dataset value is set in the
controls.

- SelectedIndexCh anged event fires during the bind process, so I can't
just
use that
- The binding don't seem to "kick in" until the tab page where the control
is is focused

Is there some advice out there? Thank you in advance.

- Niklas Ringdahl

Nov 17 '05 #2
Nicholas,

My BindingManagerB ase object doesn't have the events you are talking about.
Only CurrentChanged and PositionChanged . Where can I find the ones you
mentioned?

Related question: I bind to related data in my dataset, how does the
CurrentChanged behave with that? Will it fire on all changes done to my
dataset, wherever they occur?

- Niklas
"Nicholas Paldino [.NET/C# MVP]" wrote:
Niklas,

You should get the BindingManagerB ase (or whatever class is derived from
that, usually a CurrencyManager ) and register an event handler for the
BindingComplete event (if you want to check when binding occurs) or the
CurrentComplete d or CurrentItemChan ged if you want to see when specific
items change.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Niklas Ringdahl" <Ni************ @discussions.mi crosoft.com> wrote in
message news:1A******** *************** ***********@mic rosoft.com...
Hello.

I am using databindings to bind my dataset to comboboxes, textboxes and
labels. Some of my UI depends on knowing when the user changes the values,
but I have some problems knowing when my dataset value is set in the
controls.

- SelectedIndexCh anged event fires during the bind process, so I can't
just
use that
- The binding don't seem to "kick in" until the tab page where the control
is is focused

Is there some advice out there? Thank you in advance.

- Niklas Ringdahl


Nov 17 '05 #3

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

Similar topics

8
3038
by: IGC | last post by:
I have a requirement to record in a database when a file is finished downloading to the end-user. Currently when a user clicks a download icon for a file it directs to an ASP page that records the "hit" into a database, then I use a response.redirect "filename.exe" to point the user to the download. What I'm missing is knowing when the download is complete so I can update the database to show the file successfully completed its download....
2
2274
by: sdeezdaone | last post by:
I've got two tables that are linked by a field. The first table contains a list of items (like a checklist). The second table contains the corresponding a record for each user and each checklist item. The records in the second table don't exist initally, only after the user fills in the checklist and submits from a form. I'm trying to get a datagrid to show two columns. One being all of the checklist items and the second being a...
6
2619
by: Alan Silver | last post by:
Hello, I am data binding a repeater that has a checkbox in the ItemTemplate. The data value coming out of the database is a char(1) field containing either "y" or "n". I want to use this value to set/unset the checkbox. I tried the following in the ItemTemplate... <asp:CheckBox ID="chkShowNpVar" Text="" Checked='<%(DataBinder.Eval(Container.DataItem, "showVar")=="y" ? true :
6
2314
by: Nathan Sokalski | last post by:
I am using a DataSet as the DataSource of a DataList in my code. The SQL used to get the data from the database begins with: SELECT members.organization,artists.artist,artists.email,artists.website,members.email FROM members INNER JOIN artists ON members.memberid=artists.memberid WHERE Notice that both tables involved in the SELECT statement have a field named
9
2109
by: Dennis | last post by:
I have tried using Databinding for my application but always seem to find it very restrictive (maybe I don't completely understand it enough). I always seem to find it much easier to display a form, have the user fill it out then put the data into a class representing a data row and then use the OLEadaptor or OLECommands to update the database. My question is has anyone really used databinding in anything but the simpliest application...
0
1329
by: Wayne Sepega | last post by:
I have the following Object DataSource <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetCustomer" TypeName="Customers" DataObjectTypeName="Customer" InsertMethod="InsertCustomer" OnUpdated="ObjectDataSource1_Updated" UpdateMethod="UpdateCustomer" OnSelected="ObjectDataSource1_Selected">
0
3168
by: Buddy Home | last post by:
There is two examples of code. Example 1. Send and Receive within the same process. Put this code in a console app called SendAndReceive and run the code. using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Runtime.Serialization.Formatters.Binary;
1
1633
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello to all, I want to know if DataBinding in asp.net 2,0 is better than to fill up the values of the controls of the following form: this.miControlTextBox.Text = valorParaControlTextbox; Performance with databinding is good in asp.net 2.0 ? Would you prefer: databinding or set value to Text property of control ?
3
3271
by: David Smith | last post by:
I have an app that shows the time it takes to execute a search, much like SQL Management Studio, but the app behaves as though the System.Windows.Forms.Timer gets blocked while binding the results to the grid. As you might expect, I execute the search in the background but I have to return to the UI thread to bind the results. While databinding, it appears as though the Timer.Tick event never gets fired, so my timer freezes at the time before...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10325
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10091
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.