We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to remove sorting from dataview

Hello, I have a dataview, source of dataview is a view from sql server. Dataview is sorted, like this: dv_building.Sort = "bld_number", this dataview is a datasource to my datagird1: DataGrid1.DataSource = dv_building. Now I want to remove sorting dv_building.Sort = String.Empty, but the view of my data grid was changed, because sorting was removed, ie dataview was returned to their default sorting, probably by clustered index. How can I remove sorting, but the actual sorting remain by bld_number? Is it possible? Thanks Ramunas Balukonis

Loader.
Live Chat Icon For mobile
Up arrow icon