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]

In DBGrid, the data comes from TStoredProc, how to sort in the grid, for example, by double-clicking on a column?
Thanks in advance!!!!!!!!!!!!



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

and through what do you work? if ADO, then the component has the Sort property everywhere.



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

Event - DBGreed.OnCellClick

Function -
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.54 MB
Time: 0.036 c
14-727
Ivan L
2003-04-13 22:39
2003.05.01
Component Palette


14-787
kedis
2003-04-15 16:51
2003.05.01
Building reports in the style of 1C Accounting (without Microsoft Office)


7-808
Tallow
2003-03-13 12:15
2003.05.01
CD Emulation Out Folder


1-625
Andrew75
2003-04-19 13:41
2003.05.01
How to make a transparent window?


1-524
Zatishya
2003-04-19 02:03
2003.05.01
HELP!!! How to make a character decoder on the table ???????





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 Spanish 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