C# 如何在 Infragistic UltraGrid 中选择行或行或单元格?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1140121/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 09:11:36  来源:igfitidea点击:

How can I select row or rows or cell in Infragistic UltraGrid?

c#infragisticsultrawingrid

提问by Mariano

I need to select one row, multiple rows or a cell in Ultragrid to copy from the grid. How can this be accomplish?

我需要在 Ultragrid 中选择一行、多行或一个单元格以从网格中复制。这怎么能实现?

采纳答案by Sterno

Your question isn't very specific, but if you want to get or set the selected row, you can use the .Selected property on the row. You can also use:

您的问题不是很具体,但如果您想获取或设置选定的行,您可以使用该行的 .Selected 属性。您还可以使用:

_yourGrid.DisplayLayout.ActiveRow = whateverRowYouWantSelected

For multiple selection, you can use

对于多项选择,您可以使用

_yourGrid.DisplayLayout.SelectedRows

回答by Mosquito Mike

This is a really open ended question (web/win forms?). The best advice I can give you is if you open up the UltraWinGrid Designer from the grid's smart tag, then select the "Feature Picker" and expand the "Selection" node you should be able to configure the cell, row, column selection the way that you want.

这是一个非常开放式的问题(网络/win 表单?)。我能给你的最好建议是,如果你从网格的智能标签打开 UltraWinGrid 设计器,然后选择“功能选择器”并展开“选择”节点,你应该能够配置单元格、行、列选择的方式你要的那个。

I hope that helps.

我希望这有帮助。

回答by V.V.

select the "Feature Picker" of ultragrid designer dialog and expand the "Selection" node. you should be able to configure the cell, row, column selection the way that you want. Also you can enable either single or multiple rows selection.

选择 Ultragrid Designer 对话框的“Feature Picker”并展开“Selection”节点。您应该能够按照您想要的方式配置单元格、行、列选择。您也可以启用单行或多行选择。