锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品亚洲网站,欧美日韩精品免费观看视完整,亚洲精品在线视频观看http://www.aygfsteel.com/programmer/category/27873.htmlzh-cnFri, 07 Dec 2007 06:19:15 GMTFri, 07 Dec 2007 06:19:15 GMT60Refresh related controls' value when data changed using DataBind in Winformhttp://www.aygfsteel.com/programmer/archive/2007/08/29/165569.htmlwadewadeWed, 29 Aug 2007 02:31:00 GMThttp://www.aygfsteel.com/programmer/archive/2007/08/29/165569.htmlhttp://www.aygfsteel.com/programmer/comments/165569.htmlhttp://www.aygfsteel.com/programmer/archive/2007/08/29/165569.html#Feedback0http://www.aygfsteel.com/programmer/comments/commentRss/165569.htmlhttp://www.aygfsteel.com/programmer/services/trackbacks/165569.htmlGoal:

Use a ComboBox to select an item, and save the selected item's value to some textboxes. each control is using databinding.

Problems:

1. set control's value when comboBox changed, after the comboBox lost focus, the text was lost since the controls reload the data from binding source.

2. set binding source's value, the text will be set only when the comboBox lost focus. but we want to set the text immediately when the comboBox changed.

Solution:

set binding source's value, and call comboBox's writeValue for comboBox. this will write the comboBox's value to datasource, and reload all controls' value.

Test selectedTest = (Test)comboBox1.SelectedItem;

Test test = (Test)bindingSource1.DataSource;
if (selectedTest == null || test == null)
return;

//save the selected value to the binding source test.Name = selectedTest.Name; test.Value = selectedTest.Value; //this will write the comboBox's value to datasource, and reload all controls' value comboBox1.DataBindings["SelectedValue"].WriteValue();

 


wade 2007-08-29 10:31 鍙戣〃璇勮
]]>
Use AbstractTransactionalSpringContextTests to rollback NUnit test case automaticallyhttp://www.aygfsteel.com/programmer/archive/2007/08/20/165575.htmlwadewadeMon, 20 Aug 2007 08:12:00 GMThttp://www.aygfsteel.com/programmer/archive/2007/08/20/165575.htmlhttp://www.aygfsteel.com/programmer/comments/165575.htmlhttp://www.aygfsteel.com/programmer/archive/2007/08/20/165575.html#Feedback0http://www.aygfsteel.com/programmer/comments/commentRss/165575.htmlhttp://www.aygfsteel.com/programmer/services/trackbacks/165575.html闃呰鍏ㄦ枃

Wade 2007-08-20 16:12 鍙戣〃璇勮


wade 2007-08-20 16:12 鍙戣〃璇勮
]]>
Parse and format date in c#http://www.aygfsteel.com/programmer/archive/2007/08/17/165576.htmlwadewadeFri, 17 Aug 2007 07:18:00 GMThttp://www.aygfsteel.com/programmer/archive/2007/08/17/165576.htmlhttp://www.aygfsteel.com/programmer/comments/165576.htmlhttp://www.aygfsteel.com/programmer/archive/2007/08/17/165576.html#Feedback0http://www.aygfsteel.com/programmer/comments/commentRss/165576.htmlhttp://www.aygfsteel.com/programmer/services/trackbacks/165576.html闃呰鍏ㄦ枃

Wade 2007-08-17 15:18 鍙戣〃璇勮


wade 2007-08-17 15:18 鍙戣〃璇勮
]]>
Could not load file or assembly 'ADODB, Version=7.0.3300.0http://www.aygfsteel.com/programmer/archive/2007/08/16/165577.htmlwadewadeThu, 16 Aug 2007 08:59:00 GMThttp://www.aygfsteel.com/programmer/archive/2007/08/16/165577.htmlhttp://www.aygfsteel.com/programmer/comments/165577.htmlhttp://www.aygfsteel.com/programmer/archive/2007/08/16/165577.html#Feedback0http://www.aygfsteel.com/programmer/comments/commentRss/165577.htmlhttp://www.aygfsteel.com/programmer/services/trackbacks/165577.html闃呰鍏ㄦ枃

Wade 2007-08-16 16:59 鍙戣〃璇勮


wade 2007-08-16 16:59 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 吉木萨尔县| 库伦旗| 曲水县| 兴义市| 林周县| 夹江县| 崇左市| 桦川县| 高州市| 崇义县| 肥乡县| 德州市| 建阳市| 蓝山县| 舒城县| 耿马| 庐江县| 绿春县| 临猗县| 得荣县| 滁州市| 田阳县| 商洛市| 湖南省| 卓尼县| 类乌齐县| 宁波市| 鄯善县| 金昌市| 莱州市| 天台县| 扎赉特旗| 哈巴河县| 盐池县| 嘉善县| 镇原县| 武夷山市| 陆良县| 天镇县| 晋宁县| 普兰店市|