if (this.lsvSortingHeadList.Items.Count > 0) { this.lsvSortingHeadList.Focus(); this.lsvSortingHeadList.Items[0].Selected = true; //this.lsvSortingHeadList.HideSelection = false; //this.lsvSortingHeadList.FocusedItem = this.lsvSortingHeadList.Items[0]; //this.lsvSortingHeadList.Items[0].Focused = true; }
只有上面的代碼才能讓第一項高亮並且有焦點選中。