I have a gridview with AutoGenerateColumns="true" (in general I don't know what the columns will be). Is there any easy way to sort the grid by clicking on a column header? The only solutions I have found so far are for when AutoGenerateColumns="false"
Alternatively if I know one of the columns is going to be called StatusId
is there a way to sort on this column only?
Edit: I am manually updating the gridview's HeaderRow to make them more user friendly, this seems to be knocking things out. Is there a way to get round this?