gandalf12 Level: Guest

|
Re: SORT MSHflexigrid
Hi,
I had a similar problem with the MSFlexgrid control, enter the following code in the double click event:
Private Sub MSFlexGrid1_DblClick()
MSFlexGrid1.Sort = 3
End Sub
You can change the type of sort by changing the value as
0 = No sort, 1= Generic Ascending, 2 = Generic Descending,
3 = Numeric Ascending, 4 = Numeric Descending,
5 = String Ascending, case-insensitive,
6 = String Descending, case-insensitive,
7 = String Ascending, case-sensitive,
8 = String Descending, case-sensitive,
9 = Custom; uses the Compare event to compare rows.
Hope that helps
|