I have a datagrid on which I want to select several rows with a different user interaction than the one intended for the program. I am wondering if I can programmatically select some lines depending on the code?
Thanks Marcus
You can set the selectedIndices property to an array of indices or the selectedItems property to an array of elements.
For instance:
myDataGrid.selectedIndices = [1,2,5,8];
Source: https://habr.com/ru/post/1304381/More articles:Google App Engine - How can I improve JVM time for cold start? - javaExtension Methods and Advanced Source Code Compatibility - c #ScriptControlDescriptor.AddProperty & Read-Only Properties - c #Carefree (looping) audio playback from DirectX in C # - c #How to pause the program for a few milliseconds? - c ++In what situation is a C ++ / C # namespace approach better than a Java approach? - javafilter log file by defining regular expressions - javaHow easy is it to crack a plist file in an app store app? - iphoneSQL Server Update with Left Connection and Group - sqlSetting syntax highlighting in Vim - overrideAll Articles