alucard Posted June 29, 2015 Share Posted June 29, 2015 Kolon Sırlama Seçenekleri nasıl aktif ediliyor. Quote Link to comment Share on other sites More sharing options...
bugra Posted June 29, 2015 Share Posted June 29, 2015 Sıralanacak kolonların propertieslerinden sortable seçeneğini true yapıp, UniDbGrid OnColumnSort eventine'de if Direction then ClientDataSet1.IndexName := Column.FieldName+'_index_asc' else ClientDataSet1.IndexName := Column.FieldName+'_index_des'; kodunu ekleyin. (Kodda ClientDataSet kullandım onun yerine kendi DB bağlantınızı ekleyin) Örnek için desktop demolarındaki GridColumnSort demosunu inceleyebilirsiniz. Quote Link to comment Share on other sites More sharing options...
alucard Posted July 30, 2015 Author Share Posted July 30, 2015 Sıralanacak kolonların propertieslerinden sortable seçeneğini true yapıp, UniDbGrid OnColumnSort eventine'de if Direction then ClientDataSet1.IndexName := Column.FieldName+'_index_asc' else ClientDataSet1.IndexName := Column.FieldName+'_index_des'; kodunu ekleyin. (Kodda ClientDataSet kullandım onun yerine kendi DB bağlantınızı ekleyin) Örnek için desktop demolarındaki GridColumnSort demosunu inceleyebilirsiniz. adoquery de indexname özelliği yok. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 30, 2015 Administrators Share Posted July 30, 2015 adoquery de indexname özelliği yok. Her veritabanı tablosunun kendine göre bir sıralama yöntemi vardır. Örnek olarak SQL tablolar için "ORDER BY" komutunu kullanmanız lazım. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.