Any ideas?
TIA
Kjell Hansen
dbGrid has an OnTitleClick event which is what you sound like you're
looking for.
As I recall, this was added in D4, so if you have an earlier version...
Also, you might want to take a look at TGXDBGrid at
http://www.gexperts.com/. It has much better handling of the title row
including: Titles can actually look like buttons when clicked on, Titles
can have a glyph such as to indicate which column is being sorted and if
it's ascending or descending, and much, much more. And it's free.
HTH, Ed
--
Ed Hochman - MBH Systems
--
Ecological Software Solutions
http://www.ecostats.com
**** Remove Spam Block To Respond Directly ****
More ideas, anyone?
/Kjell
OnTitleClick returns Column as it's only parameter.
Column.FieldName should give you the field name, not the title caption.
HTH,
Ed
kjell....@telia.com (Kjell Hansen) wrote in
<37A5BF35...@telia.com>:
>SelectedField returns the caption of the column, and so does the other
>functions (FieldName, Origin, FullName etc). I get the correct
>FieldIndex but that's not sortable in Access, ORDER BY 1 ASC isn't
>supported by Jet :(
>
So most of my current problems in that form are solved :)
Still, many thanks for your efforts
/Kjell