I have 10 rows with records but wants to display only 5 rows
Try like this for first 5 rows
SELECT TOP(5) contact_id, last_name, first_name FROM contacts WHERE last_name = 'Anderson' ORDER BY contact_id;
And Bind the data in GridView....Try this if it helps u....
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.