0
什么是ListBox SelectedIndex在ListView中等价吗? 我如何在ListView中编写下面的代码?C#WinForms ListBox SelectedIndex在ListView中等价吗?
if(listbox.SelectedIndex == -1)
{
}
什么是ListBox SelectedIndex在ListView中等价吗? 我如何在ListView中编写下面的代码?C#WinForms ListBox SelectedIndex在ListView中等价吗?
if(listbox.SelectedIndex == -1)
{
}
有两种方法来检查,如果你有选择
if(listview.SelectedItems.Count > 0)
{
}
或
if(listview.SelectedIndices.Count > 0)
{
}
一个项目如果multisect是真实的,你可以在这个集合人有不止一个元素只所选商品