my datagridview displays my records but when i click my next button it display error message
" Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index "

what should be the problem here?

Hi,

You could try to set AutoGenerateColumns = off .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.