Link to home
Start Free TrialLog in
Avatar of David Svedarsky
David SvedarskyFlag for United States of America

asked on

Sort datagridview column 1 then column 2

Visual Basic 2005.
Databound form.

I have this code in form load:
 Me.MyDataGridView.Sort(MyDataGridView.Columns(1), System.ComponentModel.ListSortDirection.Ascending)

I need sample code to sort column 2 (the rows would sort by column 1 first and then by column 2).
ASKER CERTIFIED SOLUTION
Avatar of ToFro
ToFro
Flag of Finland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of David Svedarsky

ASKER

Excellent!

Thanks