| |

VerySource

 Forgot password?
 Register
Search
View: 620|Reply: 1

How to achieve click on datagridview list header not sorted?

[Copy link]

3

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-1-29 11:00:01
| Show all posts |Read mode
Winform, thank you for your suggestion
Reply

Use magic Report

0

Threads

26

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-3-5 20:00:02
| Show all posts
for (int i = 0; i <this.dataGridView1.Columns.Count; i ++)
                this.dataGridView1.Columns [i] .SortMode = DataGridViewColumnSortMode.NotSortable;

Or set SortMode to NotSortable directly in the designer
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list