Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Bases";
Current archive: 2003.05.01;
Download: [xml.tar.bz2];

Down

Sorting in DBGrid Find similar branches


xxxCrazyManxxx   (2003-04-14 15:36) [0]

В DBGrid данные поступают из TStoredProc, как в гриде произвести сортировку например по даблклику на столбце?
Заранее благодарен!!!!!!!!!!!!



sniknik   (2003-04-14 16:09) [1]

а через чего работаеш? ежели ADO то там у компонент есть повсеместно свойство Sort.



samalex   (2003-04-14 16:45) [2]

Событие - DBGreed.OnCellClick

Функция -
was
PrNameField : string;
Buf : String;
PrSQL : TStrings;
begin

PrNameField:=Trim((Sender as TColumn).Field.FullName);
Buf:="ORDER BY"+" "+PrNameField;
PrSQL.Strings[2]:=Buf;
SQL:=PrSQL;

Query.close;
Query.open;
end



Pages: 1 whole branch

Forum: "Bases";
Current archive: 2003.05.01;
Download: [xml.tar.bz2];

Top









Memory: 0.55 MB
Time: 0.021 c
We answer immediately.
zDEUSz
2003-04-16 21:53
2003.05.01
Close console application


We answer immediately.
Antonn
2003-04-20 22:49
2003.05.01
Tmemo


We answer immediately.
I am anonymous
2003-04-13 00:20
2003.05.01
13 April Birthday


We answer immediately.
Whitesnow
2003-04-13 18:08
2003.05.01
OLS


We answer immediately.
zx
2003-04-11 15:03
2003.05.01
BDE different versions





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish