I'm using a GridView and a LinqDataSource to view the Categories table. I set the Gridview to enable sorting. Sorting generally works except when i clicked on the header of the Description column.
"An order by expression can only contain non-constant scalars that are order comparable by the server. The expression with type 'NText' is not order comparable."
Description is casted with ntext but can someone explain to me what's happening? why does NText is not sortable when nvarchar are?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…