开发者

Finding selected item of Ultralistview

开发者 https://www.devze.com 2023-01-19 10:31 出处:网络
What is alternative to ListView\'s SelectedIndices property in Infragistics UltraListview? FYI: SelectedIndices Property gets index of Selected Item in List View.

What is alternative to ListView's SelectedIndices property in Infragistics UltraListview?

FYI: SelectedIndices Property gets index of Selected Item in List View.

For more info please refer: Finding the s开发者_C百科elected item of list view

Please reply

Thanks


UltraListView.SelectedItems returns a collection of UltraListViewItem objects with Selected = True.

To emulate the SelectedIndicies, you can call this LINQ code (VB):

Dim indicies() as Integer = CType(listView.SelectedItems.All(), UltraListViewItem()).Select(Function(i) i.Index).ToArray()
0

精彩评论

暂无评论...
验证码 换一张
取 消