日期:2014-05-18 浏览次数:21073 次
this.culturesCB.ValueMember = "LCID"; this.culturesCB.DataSource = CultureInfo.GetCultures(CultureTypes.FrameworkCultures); /* Set the currently selected item in the ComboBox */ this.culturesCB.SelectedValue = CultureInfo.CurrentCulture.LCID; /* Concatenate the IetfLanguageTag and DisplayName properties */ this.culturesCB.Format += delegate(object cb, ListControlConvertEventArgs args) { CultureInfo ci = (args.ListItem as CultureInfo); if (null != ci) { args.Value = string.Format("{0}: {1}", ci.IetfLanguageTag, ci.DisplayName); } };
------解决方案--------------------
cboDis.DisplayMember = Dis.Tables[0].Columns["DisN"].ColumnName;
cboDis.ValueMember = Dis.Tables[0].Columns["DisNO"].ColumnName;
取value值
------解决方案--------------------
好像和我 问的两个问题 一样嘛!
http://topic.csdn.net/u/20080731/18/e0a2816c-0bad-4ab6-b420-086ddaba0a22.html
http://topic.csdn.net/u/20080801/10/a608e0b4-6126-49d6-8274-020123ae1a8f.html