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.
プログラムで意図されたもの以外のユーザーインタラクションで複数の行を選択したいデータグリッドがあります。コードだけに基づいてプログラムでいくつかの行を選択できるかどうか疑問に思っていますか?
ありがとう、マーカス
selectedIndicesプロパティをインデックスの配列に設定するか、selectedItemsプロパティをアイテムの配列に設定できます。
例えば:
myDataGrid.selectedIndices = [1,2,5,8];