Bharat Gunjal

Bharat Gunjal

  • 1.7k
  • 22
  • 477

Ignore blank rows not working while sorting in asp.net gridview c#

Aug 11 2023 8:16 AM

I have asp.net gridview with 5 textboxes in every row. Page size of gridview is 20 records on each page. I have enabled sorting on every column. When gridview is getting populated, then we are getting 28 filled records and 12 empty records.

When I hit sorting in asc mode on any column, It gives blank rows earlier then records are coming. I wanted to ignore those blank records while sorting.

I tried using custom onsorting method on gridview but its not working.


Answers (2)