Setting selected item in a ListBox without looping

后端 未结 7 1628
萌比男神i
萌比男神i 2020-12-31 19:00

I have a multi-select listbox which I am binding to a DataTable. DataTable contains 2 columns description and value.

Here\'s the listbox populating code:

         


        
7条回答
  •  太阳男子
    2020-12-31 19:09

    this.Character.SetSelected(this.Character.Items.IndexOf(this.textBox1.Text),true);
    

提交回复
热议问题