vb.net - Sort Datagridview columns when datasource binded to List(Of T) -


i have datagridview datasource binded list(of t). sort on of columns.

my code:

'database access : items = list(blogpost) dgblogposts.datasource = items  'my blogpost class public class blogpost      public property id integer     public property title string     public property content string     public property creationdate datetime     public property rating decimal = 5.0  end class 

take @ this example recommends using bindinglist instead , bit of code enable sorting. there this on codeproject.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -