WPF Datagrid Multiple Selection without CTRL or Space

前端 未结 4 1793
遥遥无期
遥遥无期 2021-01-05 02:20

The WPF Datagrid has two selection modes, Single or Extended. The WPF ListView has a third - Multiple. This mode allows you to click and select multiple rows without CTRL or

4条回答
  •  难免孤独
    2021-01-05 02:54

    This is not supported in the DataGrid in the toolkit, and it looks like it won't be supported when the DataGrid is shipped with .NET 4 either. Yet another reason why this control is not ready for production use. I would go with one of these options:

    1. Roll your own grid with ListView/GridView
    2. Modify the source code of the DataGrid in the toolkit (it shouldn't be too hard since extended selection is already supported?)
    3. Look for any of the commercial WPF DataGrids available (they generally add huge amount of useful functionality)

    I agree that the DataGrid should support this and I think you should file a bug/suggestion for this anyway. Maybe it's not too late to get it into .NET 4.. :)

提交回复
热议问题