<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Stringgrids</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=278344221-01022007>Or 
like this.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=278344221-01022007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=278344221-01022007>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2>TStringGrid<SPAN 
class=278344221-01022007>Hack</SPAN> = class(TStringGrid)<SPAN 
class=278344221-01022007>;</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=278344221-01022007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=278344221-01022007>Regards</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=278344221-01022007>Leigh</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=278344221-01022007><A 
href="http://www.smootharm.com">www.smootharm.com</A></SPAN></FONT></FONT></FONT></DIV></SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> delphi-bounces@ns3.123.co.nz 
  [mailto:delphi-bounces@ns3.123.co.nz]<B>On Behalf Of </B>Todd 
  Martin<BR><B>Sent:</B> Friday, 2 February 2007 9:45 a.m.<BR><B>To:</B> NZ 
  Borland Developers Group - Delphi List<BR><B>Subject:</B> Re: [DUG] 
  Stringgrids<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>TCustomGrid.MoveRow() is a protected method (god 
  knows why), so you will have to define a descendant grid class and make it 
  public.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>TSuperDuperGrid = class(TStringGrid)</FONT></DIV>
  <DIV><FONT face=Arial size=2>public</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;MoveRow();</FONT></DIV>
  <DIV><FONT face=Arial size=2>end;</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=e.mcIntosh@ppcs.co.nz href="mailto:e.mcIntosh@ppcs.co.nz">Eion 
    McIntosh (Christchurch)</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@ns3.123.co.nz 
    href="mailto:delphi@ns3.123.co.nz">NZ Borland Developers Group - Delphi 
    List</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, February 02, 2007 9:06 
    AM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> [DUG] Stringgrids</DIV>
    <DIV><BR></DIV><!-- Converted from text/rtf format -->
    <P><FONT face=Arial size=2>Hi</FONT> </P>
    <P><FONT face=Arial size=2>I havd a look, but can't see anything, but can 
    you take 2 rows within a TStringGrid and swap them? I have some details in a 
    stringgrid but would like to sort it on one of the rows after it has been 
    filled. I can't fill it in order to start with because the source data is 
    coming from two different sources.</FONT></P>
    <P><FONT face=Arial size=2>Regards</FONT> <BR><FONT face=Arial size=2>Eion 
    McIntosh</FONT> <BR><FONT face=Arial size=2>PPCS Ltd</FONT> </P>
    <P>
    <HR>

    <P></P>_______________________________________________<BR>Delphi mailing 
    list<BR>Delphi@ns3.123.co.nz<BR>http://ns3.123.co.nz/mailman/listinfo/delphi<BR>
    <P>
    <HR>

    <P></P>No virus found in this incoming message.<BR>Checked by AVG Free 
    Edition.<BR>Version: 7.5.432 / Virus Database: 268.17.18/662 - Release Date: 
    31/01/2007 3:16 p.m.<BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>