I am using a DataGridView control in WinForms to populate data. While sorting it, it considers blank rows as well. I want to move those blank lines to the bottom of the grid. Whatever the sort criteria is.
Please help to do this?
This is on the similar lines like DataGridView sorting with nulls in DateTime column
But the problem is if DataGridView is DataBound or its VirtualMode property is set to true. SortCompare event doesn't work.