Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
画面に読み込まれる DevExpress グリッドビューがあります。最初は、どの行にも焦点を合わせたくありません。ユーザーが行を選択した後にのみ、フォーカスが必要です。これを達成する方法はありますか?
Mvvm パターンを使用すると、これを試すことができます。私は同じ問題を抱えていて、GridView の OnPropertyChanged イベントをオーバーライドすることで解決しました
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e) { base.OnPropertyChanged(e); this.ClearSelection(); }