473,396 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help: Bind problem when CurrentCellDirtyStateChanged fires

Hi, I have datagridview with unbounded checkboxes and data bounded textbox
in one tab of a tab control. In another tab of the same tab control I have a
text box. Both the datagridview and the text box are using the same
bindingsource.

I have a logic that unchecks the other unbonded checkboxes in the
datagridview's CellValueChanged event when a different checkbox is selected.
I used the CurrentCellDirtyStateChanged event to trigger the
CellValueChanged event so the checkbox updating happends immediately.

The problem is, when the CurrentCellDirtyStateChanged fires, the text box on
the other tab loose the value it holds. I am suspecting that it has
something to do with the bindingsource being shared but don't know how to
prevent that from happening.

Please help.

Thanks,

Rick..
Sep 6 '06 #1
0 2411

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

Similar topics

3
by: SteveK | last post by:
I have a text box and I simply want to bind it to an int variable. I'm testing how all this stuff works and I wanted to test if I increment the int, will the textbox update automatically, however...
2
by: Juan | last post by:
Do i have to loop trough a datagrid in order to find and select a row just being inserted in the dataset connected to the data grid? is there any event i can capture in the datagrid to obtain the...
3
by: sck10 | last post by:
Hello, I am trying to bind an arraylist to a FormView DropDownList control in the PreRender state. The error that I get is the following: Databinding methods such as Eval(), XPath(), and...
3
by: Rick Shaw | last post by:
Hi. I am very new to C# and needed help. Use to program in Delphi but switching to C#. I am just starting my very first application and already don't know what to do. Here is what I'm trying to...
0
by: Peter Newman | last post by:
vb.net 2003 Sql 2005 Ive been banging my head against a brick wall for the last day trying to figure out what im doing wrong I have a Dataset and a Form with text boxes that are bound to the...
2
by: hwiechers | last post by:
I have two drop down lists on a page. Each one is hooked up to a separate SqlDataSource. The second data source has a ControlParameter set to the selected value of the first drop down. When I set...
2
by: bz | last post by:
Hi, I need to create a win service that lookup a file ina folder, ands when received, read it then fir an event. Then I need a desktop app that, when runs, bind to the event from the win...
4
by: bz | last post by:
Hi, I need to create a win service that lookup a file ina folder, ands when received, read it then fir an event. Then I need a desktop app that, when runs, bind to the event from the win...
0
by: kitemad69 | last post by:
private void getDebOutInvBalDataGridView_CurrentCellDirtyStateChanged(object sender, EventArgs e) { getDebOutInvBalDataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit); } I am...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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...
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,...

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.