简体   繁体   中英

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. 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. 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 ? It's probably null .

ASPxGridView Datasource will be null on each round trip. If you click next page, that gridview lost its datasource. Hence you got null reference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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