|
-
May 6th, 2019, 08:56 AM
#1
Thread Starter
Lively Member
[RESOLVED] Is it possible to sort a DataGridView firstly by Column1, and then Column2?
Is it possible to sort a DataGridView firstly by Column1, and then Column2?
Over here, I need to Sort by Job_Status desc order first, then by LeadTime Asc order
So the URGENT jobs with the EARLIEST LeadTime should be at the TOP.
LeadTime JobStatus
5 May Urgent
6 May Urgent
9 May Urgent
11 May Urgent
12 May Urgent
8 May On Hold
-
May 6th, 2019, 09:47 AM
#2
Re: Is it possible to sort a DataGridView firstly by Column1, and then Column2?
How did you populate the grid in the first place?
-
May 6th, 2019, 10:38 AM
#3
Thread Starter
Lively Member
Re: Is it possible to sort a DataGridView firstly by Column1, and then Column2?
It's ok, I found the answer.
Code:
ProjectsBindingSource.Sort() = "Job_Status DESC, Lead_Time"
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|