Sorting records in Delphi DBGrid by Clicking on Column Title

Just put this code on “OnTitleClick” event of your DBGrid

procedure TFrm_Main.DBGrid_TrcrosTitleClick(Column: TColumn);
begin
inherited;

if (Column.Field.Calculated = False ) and (Column.Field.Lookup = False ) then
   TClientDataSet(Column.Grid.DataSource.DataSet).Ind  exFieldNames := Column.FieldName
   else if (Column.Field.Lookup = True ) then
      TClientDataSet(Column.Grid.DataSource.DataSet).Ind  exFieldNames := Column.Field.LookupKeyFields;
end;

10 reasons why you shouldn’t switch to Linux

Let’s face it, not even a week passes in which does not appears an article on a blog that says something about the myths of Linux, or the advantages of Linux. I can only guess to say “bahhhhhh.”

If you need 1,000 reasons to change the OS of your choice, better stay with it. After a lifetime forced to use Windows, and not having the money to buy a Mac, I have seen the need to run some darkers Linux distros. Believe me, one that another reason not to switch to Linux, in fact, here I let you 10:

  1. You should not switch to Linux because… actually enjoy paying for an operating system, regardless of the bugs and the security flaws, and that is so bad that never had to be out as the alpha release of an OS . What economic crisis?
  2. You should not switch to Linux because… change is scary. Do not believe me?. Look at Obama, he scares me. He always talks about change and stuff, and true change is scary, although supposedly make things better.
  3. You should not switch to Linux because… the only thing you use your computer is to play. I say “maybe has another use? Does anyone use it for something else?
  4. You should not switch to Linux because… we all love to spend one day a week to scan, virus scan, spyware scan, disk scan, scanning records. Yippie, so much fun!
  5. You should not switch to Linux because… you love paying to have antivirus protection that any OS should give you. Even though there is the enviable Windows Defender.
  6. You should not switch to Linux because… most people use Windows. Hey, of course, if most people use Windows, it should be great.
  7. You should not switch to Linux because… you realize that nothing is forever. Eventually, you succumb to the Windows Blue Screen of Death (or BSOD) and you can reinstall your Windows without problems. However, to have something similar in Linux (a Kernel Panic) would have to wait some years… if it passes.
  8. You should not switch to Linux because… you love Internet Explorer, and you can only use the latest version of IE with Windows. Imagine connecting to the web without IE. Horrible, right?
  9. You should not switch to Linux because… you would have to be a geek to use Linux and we all know that geeks don’t have pretty girlfriends, don’t you believe me? Don’t you see The Big Bang Theory?
  10. You should not switch to Linux because… I don’t want to be a conformist and use what others tell you to use. Want to be unique, so “I’m a PC”… wait a minute!

Translated from here

Let’s face it, not even a week passes in which does not leave an item on a blog that says something about the myths of Linux , or the advantages of Linux. I can only guess to say “bahhhhhh.”Si necesitas 1000 razones para cambiar el Sistema Operativo de tu elección, mejor quédate con el. If you need 1000 reasons to change the OS of your choice, better stay with him. Después de una vida obligado a usar Windows, y de no tener el dinero para comprarme una Mac, me he visto en la necesidad de correr algunas de las distros Linux más oscuras . After a lifetime forced to use Windows, and not having the money to buy a Mac, I have seen the need to run some Linux distros darker. Créanme, se una que otra razón para no Cambiarte a Linux, de hecho, ahi les van 10: Believe me, one that another reason not to switch to Linux, in fact, there are going 10:

1. No deberías cambiarte a Linux porque… en realidad disfrutas pagando por un sistema operativo, sin importar los bus y los fallos de seguridad, y el hecho de que es tan malo que ni siquiera debió de haber salido como la versión alfa de un SO. 1. You should not switch to Linux because … actually enjoy paying for an operating system, regardless of the bus and the security flaws, and that is so bad that even he must have come as the alpha version of an OS . ¿Cuál crisis económica? What economic crisis?

2. No deberías cambiarte a Linux porque… el cambio da miedo. 2. You should not switch to Linux because … change is scary. ¿No me crees? Do not believe me? Ve a Obama, él me da miedo. Go Obama, he scares me. El siempre habla acerca del cambio y cosas así, y la verdad el cambio da miedo , aunque haga las cosas supuestamente mejores. He always talks about change and stuff, and true change is scary, although supposedly make things better.

3. No deberías cambiarte a Linux porque… para lo único que usas tu computadora es para jugar . 3. You should not switch to Linux because … the only thing you use your computer is to play. Digo ¿acaso tiene otra utilidad? I say “maybe has another use? ¿alguien la usa para algo más? Does anyone use it for something else?

4. No deberías cambiarte a Linux porque… a todos nos encanta dedicar un día a la semana al escaneo ; escaneo de virus, escaneo de spyware, escaneo de disco, escaneo de registros. 4. You should not switch to Linux because … we all love to spend one day a week to scan, virus scan, spyware scan, disk scan, scanning records. Yippie, ¡que diversión! Yippie, but fun!

5. No deberías cambiarte a Linux porque… te encanta pagar antivirus para tener la protección que cualquier SO debería de darte. 5. You should not switch to Linux because … you love paying to have antivirus protection that any OS should give you. Incluso aunque exista el envidiable Windows Defender. Even though there is the enviable Windows Defender.

6. No deberías cambiarte a Linux porque… la mayoría de la gente usa Windows . 6. You should not switch to Linux because … most people use Windows. Hey, es lógico, si la mayoría de la gente usa Windows, debe ser buenísimo. Hey, of course, if most people use Windows, it should be great.

7. No deberías cambiarte a Linux porque… tu sí te das cuenta que nada es para siempre. 7. You should not switch to Linux because … your self you realize that nothing is forever. Eventualmente, tu Windows sucumbirá ante la Pantalla Azul de la Muerte (o BSOD), y podrás reinstalar tu Windows sin problemas. Eventually, you succumb to the Windows Blue Screen of Death (or BSOD) and you can reinstall your Windows without problems. En cambio, para que en Linux tengas algo parecido (un Kernel Panic) tendrías que esperar algunos años… si pasa. However, to have something similar in Linux (a Kernel Panic) would have to wait some years … if it passes.

8. No deberías cambiarte a Linux porque… te encanta Internet Explorer , y solamente puedes usar la última versión de IE con Windows. 8. You should not switch to Linux because … you love Internet Explorer, and you can only use the latest version of IE with Windows. Imagina conectarte a la web sin IE. Imagine connecting to the web without IE. Horrible, ¿no? Horrible, right?

9. No deberías cambiarte a Linux porque… tendrías que ser un geek para usar Linux y todas sabemos que los geeks no tienen novias bonitas ; ¿no me crees? 9. You should not switch to Linux because … you would have to be a geek to use Linux and we all know that geeks do not have girlfriends pretty, do not believe me? ¿acaso no ves The Big Bang Theory? Do not you see The Big Bang Theory?

10. No deberías cambiarte a Linux porque… no quieres ser un conformista y usar lo que otros te dicen que uses. 10. You should not switch to Linux because … I do not want to be a conformist and use what others tell you to use. Quieres ser único, por eso “ Im a PC “… ¡espera un momento!… Want to be unique, so “I’m a PC” … wait a minute! …