hi
i have a query that returns me the desire result with the columns all ready sorted, but wingrid sorts again the resuts and mess up my query, how can i disable this function?
Thanks.
The grid doesn't sort anything by default. If the grid is changing the sort order of your data, it's because something in your code is telling it to. The way you tell the grid to sort is by setting the SortIndicator property on the column. So make sure your code is not doing that.
Also, if you are loading a layout into your grid, the layout might have been saved with sorted columns. In which case, you won't be able to load that layout.
i was only aligning the cell content to the center so i added an extra code of line resetting the column and that solve my problem.