I have been searching around for how to sort by a set column DESC in the code but everything seems to reference the datagrid sorting a database or something along those lines. If I manually built my datagrid record (Rows.Add), how can I sort the records by the first column so I can keep adding rows?
redbrad0
0
Newbie Poster
Recommended Answers
Jump to PostUse,
dataGridView1.Sort(dataGridView1.Columns["Name"], ListSortDirection.Descending);
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.