简体   繁体   English

Aspxcheckbox对象未设置为对象的实例(Devexpress aspxgridview)

[英]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 ? 您检查过cbaksesValue了吗? 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM