Live Chat Icon For mobile
Live Chat Icon

Why am I getting an ‘AllowCustomPaging must be true and VirtualItemCount must be set for a DataGrid with ID MyDataGrid when AllowPaging is set to true and the selected datasource does not implement ICollection’ Error?

Platform: ASP.NET| Category: DataGrid

You are probably trying to implement paging in a DataGrid while binding the DataGrid with a DataReader.
To fix this, instead of using a DataReader use a DataSet

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.