Message 1 of 2

Not applicable
08-14-2014
06:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all. I was wondering if anyone could help me with sorting a bindingsource. In the Revit SDK samples, there is project called LevelsProperty. It has a datagridview linked to bindingsource1 that gets filled with Revit Level information. I would like to keep the datagridview sorted by "Elevation" but I can't figure out how to do this. By reading online, the bindingsource should be able to be sorted by using the line below but this doesn't seem to do anything.
bindingSource1.Sort = "Elevation DESC"; // doesn't work and does not produce an error
Any ideas?
Solved! Go to Solution.