I have a gridview that is bound to a sqldatasource. The Gridview only has a pagesize of 10 and I would like each page to have 10 rows. Therefore if only 5 data rows exist then I would like to add an additional 5 empty rows. Is this easy to do?
Share
Fill your data into data set and count the number of rows retrieved then fill the remaining to the dataset with empty dataRows try this:
Suppose you have a DataSet dt filled with the table or data you want
You can see this