在ListView中删除最后一行时出现问题 [英] Problem deleting Last Row in ListView
本文介绍了在ListView中删除最后一行时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我点击列表视图的最后一行时,我正在使用Vb.net编写移动应用程序
,并尝试将其删除....
将提示以下消息附加信息:
ArgumentOutOfRangeException"
这是什么意思?
我可以删除任何行但没有问题,但除了最后一行....
I am writing mobile application using Vb.net
when i click the last row of list view, and try to delete it....
will promtpy the following message "Additional information:
ArgumentOutOfRangeException"
what does that mean ?
I can delete any row without problem but except last row only....
推荐答案
向我们展示代码......如果你正在使用索引删除你应该是
调整-1
干杯
Daniel
-
http://www.danielmoth.com/Blog/
" A_PK" < PK *** @ hotmail.com>在留言中写道
新闻:或************** @ TK2MSFTNGP11.phx.gbl ...
Show us the code... If you are using the index for deleting you should be
adjusting by -1
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
" A_PK" <pk***@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP11.phx.gbl...
我正在写移动应用程序使用Vb.net
当我点击列表视图的最后一行,并尝试删除它....
将提示以下消息附加信息:
ArgumentOutOfRangeException这是什么意思?
我可以删除任何行但没有问题,但只有最后一行....
I am writing mobile application using Vb.net
when i click the last row of list view, and try to delete it....
will promtpy the following message "Additional information:
ArgumentOutOfRangeException"
what does that mean ?
I can delete any row without problem but except last row only....
A,
如果仍有足够的项目要删除,请在删除方法中测试,这可能会发生
当你还没有这样做的时候,删除按钮被按两次
结束。
我希望这有帮助吗?
Cor
" A_PK" < pk *** @ hotmail.com>
A,
Test in your delete method if there are still enough items to delete, this
can occur when you have not done that and a delete button is pushed twice at
the end.
I hope this helps?
Cor
" A_PK" <pk***@hotmail.com>
我正在使用Vb.net编写移动应用程序
当我点击列表视图的最后一行时,并尝试删除它....
将提示以下消息附加信息:
ArgumentOutOfRangeException
这是什么意思?
我可以删除任何行但没有问题,但除了最后一行....
I am writing mobile application using Vb.net
when i click the last row of list view, and try to delete it....
will promtpy the following message "Additional information:
ArgumentOutOfRangeException"
what does that mean ?
I can delete any row without problem but except last row only....
如果你有5行删除第4行作为行基于零。这意味着:
行:0,1,2,3,4(5行)
" A_PK"写道:
If you have 5 rows delete row number 4 as the rows are zero based. It means:
Rows: 0,1,2,3,4 (5 rows)
"A_PK" wrote:
我正在使用Vb.net编写移动应用程序
当我点击列表视图的最后一行,并尝试删除它....
将提示以下消息附加信息:
ArgumentOutOfRangeException
这是什么意思?
我可以删除任何行但没有问题但是除外仅限最后一行......
I am writing mobile application using Vb.net
when i click the last row of list view, and try to delete it....
will promtpy the following message "Additional information:
ArgumentOutOfRangeException"
what does that mean ?
I can delete any row without problem but except last row only....
这篇关于在ListView中删除最后一行时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文