Using windowsform: Datagridview excluding a row upon sorting on newest questions tagged winforms – Stack Overflow

I’d like to make my datagridview not include the very top row for sorting when the user clicks on the column header.

How can I accomplish this?

Edit: Since people asked for elaboration…

Basically I have the a datagridview filled with data. The very top row is a textbox where user can input a keyword to search a particular data. Therefore, I need this particular row to be excluded when the user clicks on the column header to sort the items (I.E: Only rows 2 – End of the row are sorted).

If this explanation isn’t clear enough, I don’t know what is.

See Answers


source: http://stackoverflow.com/questions/11392249/datagridview-excluding-a-row-upon-sorting
Using windowsform: using-windowsform



online applications demo