on-internet
← Community

C# sort datagridview on column header click

Stack Overflow ·

:) I have a datagridview and I fill it by List (I get data from 2 text files), but when I tried to click on a column header (I tried with all columns headers), I can't sort my datagridview data. This is my code: public class Data1 { public string Campionato { get; set; } public string Data { get; set; } public string Home { get; set; } public string Away { get; set; } public int HSFT { get; set; } public int ASFT { get; set; } public int HSHT { get; set; } public int ASHT { get; set; } public int HSSH { get; set; } public int ASSH { get; set; } } public class Data2 { public string Home { get;

Comments

Sign in or sign up to comment and upvote.

No comments yet.