![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Сортировка ADODataSet [MSSQL]
Ega23 © (2007-03-13 16:35:00)Есть ADODataSet с открытым набором данных.
Как его сортировать по разным столбцам на клиенте, не переоткрывая? IndexDefs добавлять?
Ega23 (2007-03-13 16:39:00) [81]
> проще метод sort использовать.
Да, про этот не знал. Бум знать.
Jan (2007-03-13 16:38:00) [82]ADOQuery1.Sort := 'LastName ASC, DateDue DESC'
Note: If the cursor is client-side (the dataset component’s CursorLocation property or that of an associated TADOConnection component is clUseClient) and no index already exists matching the requested field sort order, a temporary index is created. Resetting the sort order by setting Sort to an empty string automatically deletes the temporary index.
Ega23 (2007-03-13 16:38:00) [83]
> Jan (13.03.07 16:38) [1]
Оно. Спасибо.
sniknik (2007-03-13 16:38:00) [84]проще метод sort использовать.