gpt4 book ai didi

c# - 将 GridView 选定项设置为无

转载 作者:行者123 更新时间:2023-11-30 20:51:02 27 4
gpt4 key购买 nike

我正在使用 Xaml 和 C# 开发 Windows 8.1 应用程序,Windows 8.1 在列表加载时选择第一个列表项。我该如何更改它,以便列表在加载时没有 selectedItem。

最佳答案

来自 MSDN 文档:

Use the SelectedIndex property to determine the index of the currently selected row in a >GridView control. You can also use this property to programmatically select a row in the >control. To clear the selection of a row, set this property to -1.

来源:http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.selectedindex(v=vs.110).aspx

关于c# - 将 GridView 选定项设置为无,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22096785/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com