Hi, I would like to ask if I have a gridview.
And I want the records to be deleted after 20 records automatically & all the 20 records will be gone after I've added in the 21st record in. How do I do so?

Thanks a lot.

if u want to add 21st record
1. count gridview rows.
2. if count => 20 then delete all 20 record
else
add record.

Can you explain more detail on this? or any article you can recommend?

Thank you very much! (:

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.