Exemplo n.º 1
0
        private void FormShengComboSelector2_Load(object sender, EventArgs e)
        {
            shengComboSelector21.DisplayMember     = "Name";
            shengComboSelector21.DescriptionMember = "Description";
            shengComboSelector21.DataBind(TestListViewItem.GetTestData());

            shengComboSelector22.DisplayMember   = "Name";
            shengComboSelector22.ShowDescription = false;
            shengComboSelector22.DataBind(TestListViewItem.GetTestData());
        }
Exemplo n.º 2
0
        private void FormShengListView_Load(object sender, EventArgs e)
        {
            shengListView1.DisplayMember = "Name";
            shengListView1.DataBind(TestListViewItem.GetTestData());

            shengListView2.SetExtendMember("Description", "Description");
            shengListView2.LayoutMode = ShengListViewLayoutMode.Descriptive;
            shengListView2.Theme.SelectedColorStart = Color.Yellow;
            shengListView2.Theme.SelectedColorEnd   = Color.LightYellow;
            shengListView2.DisplayMember            = "Name";
            shengListView2.DataBind(TestListViewItem.GetTestData());
        }
        private void FormShengComboSelector_Load(object sender, EventArgs e)
        {
            shengComboSelector1.ItemDescriptionColor = Color.Blue;
            shengComboSelector1.ItemFocusColor       = Color.LightYellow;
            shengComboSelector1.DisplayMember        = "Name";
            shengComboSelector1.DescriptionMember    = "Description";
            shengComboSelector1.DataSource           = TestListViewItem.GetTestData();

            shengComboSelector2.DisplayMember   = "Name";
            shengComboSelector2.ShowDescription = false;
            shengComboSelector2.DataSource      = TestListViewItem.GetTestData();
        }