2
Answers

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

Bharat Gunjal

Bharat Gunjal

1y
536
1

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)