How to make control reflect changes was maded on his datasource
-
Hi all. How i can make control reflect changes was maded on his datasource?
ctlTextEdit.DataBindings.Add(new Binding("EditValue", _mySourceDataRow, "Field1")); .... void someButton_onClick(...) { _mySourceDataRow.Field1 = "New text"; /* What i should write here for ctlTextEdit control reflect changes (i.e "New text") But without direct invokation of his methods (for examp:this.codeTextEdit.DataBindings[0].ReadValue(); */ }
Or exists an method in Form class what make all child controls reread values from ones data sources? THANK. -
Hi all. How i can make control reflect changes was maded on his datasource?
ctlTextEdit.DataBindings.Add(new Binding("EditValue", _mySourceDataRow, "Field1")); .... void someButton_onClick(...) { _mySourceDataRow.Field1 = "New text"; /* What i should write here for ctlTextEdit control reflect changes (i.e "New text") But without direct invokation of his methods (for examp:this.codeTextEdit.DataBindings[0].ReadValue(); */ }
Or exists an method in Form class what make all child controls reread values from ones data sources? THANK.