美文网首页
CheckedListBox绑定数据(必须是属性)

CheckedListBox绑定数据(必须是属性)

作者: Asa_Guo | 来源:发表于2017-04-19 09:38 被阅读0次
            public class CheckedListBoxItem
            {
                public int Id { get; set; }
                public string NameAndUniqueName { get; set; }
                public int? MatchMachineZoneId { get; set; }
                public string Pinyin { get; set; }
            }
            checkedListBox_Patients.DataSource = new BindingSource { DataSource = _showList };
            checkedListBox_Patients.ValueMember = "Id";
            checkedListBox_Patients.DisplayMember = "NameAndUniqueName";
    

    相关文章

      网友评论

          本文标题:CheckedListBox绑定数据(必须是属性)

          本文链接:https://www.haomeiwen.com/subject/cmltuttx.html