Click here to Skip to main content
15,902,114 members
Home / Discussions / C#
   

C#

 
GeneralRe: Thread, WaitSleepJoin Pin
Luc Pattyn21-Jul-07 13:08
sitebuilderLuc Pattyn21-Jul-07 13:08 
GeneralRe: Thread, WaitSleepJoin Pin
Johan Martensson21-Jul-07 22:14
Johan Martensson21-Jul-07 22:14 
GeneralRe: Thread, WaitSleepJoin Pin
Luc Pattyn22-Jul-07 0:34
sitebuilderLuc Pattyn22-Jul-07 0:34 
GeneralRe: Thread, WaitSleepJoin Pin
Johan Martensson24-Jul-07 0:15
Johan Martensson24-Jul-07 0:15 
GeneralRe: Thread, WaitSleepJoin Pin
Luc Pattyn24-Jul-07 1:01
sitebuilderLuc Pattyn24-Jul-07 1:01 
GeneralRe: Thread, WaitSleepJoin Pin
Johan Martensson24-Jul-07 8:21
Johan Martensson24-Jul-07 8:21 
GeneralRe: Thread, WaitSleepJoin Pin
Luc Pattyn24-Jul-07 11:54
sitebuilderLuc Pattyn24-Jul-07 11:54 
QuestionDataSource binding problem Pin
~~~Johnny~~~21-Jul-07 3:27
~~~Johnny~~~21-Jul-07 3:27 
Hi,
I have a problem binding a DataSource object to multiple TextBoxes on the same form. It seems that the TextBox object is not dynamic, it doesn't change its Text value if the datasource changes.

So I did a small experiment to prove this. In a form I initialize three controls and a Members object(derived from a DataSet): Note also that mem[0] returns a DataTable.

Members mem = new Members();
mem.ReadRange(1004, 1004);

binding = new BindingSource(mem[0], null);

textBox1.DataBindings.Add("Text", binding, "FirstName");
textBox2.DataBindings.Add("Text", binding, "FirstName");
dataGridView1.DataSource = mem[0];

Here if I type data in the TextBox1, the datagrid reacts and shows me the modified data on Leave, but TextBox2 doesn't react.
Same reaction for TextBox2.
If I modify data in the DataGrid's column, none of the Textboxes react until BindingSource.Position changes.

So I need a way to make the two text boxes to look at the state of the BindingSource adn detect any changes and react to it

I tried also to detect events on BindingSource and BindingSource.CurrencyManager and nothig fires when leaving one of the TextBoxes.

Really Confused | :confused:
AnswerRe: DataSource binding problem Pin
~~~Johnny~~~21-Jul-07 5:01
~~~Johnny~~~21-Jul-07 5:01 
GeneralRe: DataSource binding problem Pin
Urs Enzler22-Jul-07 6:24
Urs Enzler22-Jul-07 6:24 
GeneralRe: DataSource binding problem Pin
~~~Johnny~~~23-Jul-07 6:03
~~~Johnny~~~23-Jul-07 6:03 
GeneralRe: DataSource binding problem Pin
Urs Enzler29-Jul-07 21:40
Urs Enzler29-Jul-07 21:40 
Questionadd header and footer to a dynamically generated word Pin
Nitin Varambally21-Jul-07 3:23
Nitin Varambally21-Jul-07 3:23 
QuestionConverting a Form to a Windows Service Pin
Ben297521-Jul-07 2:35
Ben297521-Jul-07 2:35 
AnswerRe: Converting a Form to a Windows Service Pin
Luc Pattyn21-Jul-07 3:09
sitebuilderLuc Pattyn21-Jul-07 3:09 
QuestionAny one know how to insert new rows into DataGrid [modified] Pin
michaelqog21-Jul-07 1:51
michaelqog21-Jul-07 1:51 
Questionhow to generate a crystal report everyday at a particular time with windows services in .net Pin
raj_no_of_doubts21-Jul-07 0:34
raj_no_of_doubts21-Jul-07 0:34 
QuestionTreeView/TabControl question Pin
EliBaskin20-Jul-07 23:54
EliBaskin20-Jul-07 23:54 
AnswerRe: TreeView/TabControl question Pin
Larantz21-Jul-07 9:15
Larantz21-Jul-07 9:15 
GeneralRe: TreeView/TabControl question Pin
EliBaskin21-Jul-07 12:37
EliBaskin21-Jul-07 12:37 
Questionchange currentrow in datagridview Pin
amir hooshang20-Jul-07 23:04
amir hooshang20-Jul-07 23:04 
QuestionHighlight the records in grid Pin
Tyng20-Jul-07 22:55
Tyng20-Jul-07 22:55 
QuestionMessage Queue Manipulation Pin
M. J. Jaya Chitra20-Jul-07 21:02
M. J. Jaya Chitra20-Jul-07 21:02 
AnswerRe: Message Queue Manipulation Pin
Guffa21-Jul-07 1:12
Guffa21-Jul-07 1:12 
GeneralRe: Message Queue Manipulation Pin
M. J. Jaya Chitra22-Jul-07 18:16
M. J. Jaya Chitra22-Jul-07 18:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.