[英]Aspxcheckbox object not set to an instance of an object (Devexpress aspxgridview)
I have a problem in my work. 我的工作有问题。 This is my detail problem:
这是我的详细问题:
I have 2 aspxgridview
, A using SQL to load data and B aspxgridview
is use for copy some item from A to B by rowselecting
, in my B aspxgridview
, each rows have an checkbox which user can check it. 我有2个
aspxgridview
,A使用SQL加载数据,而B aspxgridview
用于通过在我的B aspxgridview
通过rowselecting
从A复制某些项目到B,每行都有一个复选框,用户可以检查它。 My problem is, when in my B gridview
have paging with limit 10 when 11st item, aspxcheckbox
in the next paging can't detect as object. 我的问题是,当我在乙
gridview
有限制10分页时第11项, aspxcheckbox
在下一寻呼不能作为检测对象。 So, I can't get that value to insert it to my database. 因此,我无法获得将该值插入到数据库中的值。 this is my screenshot.
这是我的截图。 if anyone know how to fix it, I hope u can help my problem thank you.
如果有人知道如何解决,希望您能帮助我解决问题。
Have you checked the Value
of cbakses
? 您检查过
cbakses
的Value
了吗? It's probably null
. 它可能为
null
。
ASPxGridView Datasource will be null on each round trip. 每次往返时,ASPxGridView数据源将为null。 If you click next page, that gridview lost its datasource.
如果单击下一页,则该网格视图将丢失其数据源。 Hence you got null reference.
因此,您获得了空引用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.