[출처] http://www.scalabium.com
[다운로드] http://www.scalabium.com/smdbgrid.htm
[FAQ]
http://www.scalabium.com/faq/smdbgrid.htm
ex)
1. How I can add the sorted column?
You may do it in a few different ways:
- every column (TSMDBColumn type) have the SortType property
{add a new sorted column in list - ascending order}
(SMDBGrid.Columns[1] as TSMDBColumn).SortType := stAscending
{add a new sorted column in list - descending order}
(SMDBGrid.Columns[2] as TSMDBColumn).SortType := stDescending;
- as alternative, you may use the SetSortField method for TSMDBGrid
SMDBGrid.SetSortField(yourDataset.FindField('OrderNo'), stAscending);
등등...
|