Dim sortString As String
sortField = DataGrid1.Columns(ColIndex).Caption
If InStr(Data1.Recordset.Sort, "Asc") Then
sortString = sortField & " Desc"
Else
sortString = sortField & " Asc"
End If
Data1.Recordset.Sort = sortString
That is the source code I got from MSDN..!
So I created both DBGrid and Datagrid, then assigned DBGrid to Data, and Datagrid to ADODC. I filled everything on Data and ADODC, and all of DBGrid & Datagrid displays the content of database. I used Biblio.mdb database then displaying table Author. Meaning all is well.
..but, when I clicked the head column, nothing happens.. I changed the trigger into Changing & ColResize. Then I change the column size and change the inside data. Nothing happens...
Anyone knows why?
Edited by Andrern2000, 28 October 2010 - 05:40 PM.
Getting source code from MSDN


Sign In
Create Account

Back to top










