© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
5 replies
Diesel Geezer

Problem with datagridview sorting

after i use
dataGridView1.Sort(dataGridView1.Columns[0], System.ComponentModel.ListSortDirection.Ascending);
dataGridView1.Sort(dataGridView1.Columns[0], System.ComponentModel.ListSortDirection.Ascending);
The datagridview starts ordering whatever i enter automatically. I thought this was supposed to sort the data only when i ran the command, not make it sort automatically all the time
how do i sort a datagridview only once without the automatic ordering
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Panel with Datagridview problem (forms)
C#CC# / help
3y ago
✅ DataGridView Problem WinForm
C#CC# / help
3y ago
Disabling sorting for a specific DataGridView column
C#CC# / help
3y ago
Datagridview
C#CC# / help
11mo ago