Hi,

Is it possible to align to the right the subitems' text.
Is is possible to sort correctly if a subitem conatins DateTime values ?

Demetrios, Greece

Re: ListView Control (2nd Try) by Hans

Hans
Wed Mar 16 06:58:27 CST 2005

Hi,

Yes you can set the alignment for all columns:

cHeader = "MyColumn"
nWidth = 100
nAlignment = 1 && 0 = left
This.ListView.ColumnHeaders.Add( , ,cHeader, nWidth, nAlignment)

No, sorting dates doesn't work. A shame really. Go see:
http://support.microsoft.com/kb/170884/EN-US/

Hans


"Demetrios Panayotakopoulos" <dpanayotakopoulos_my_dat@_my_ametro.gr>
schreef in bericht news:%23TyhDKhKFHA.2936@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> Is it possible to align to the right the subitems' text.
> Is is possible to sort correctly if a subitem conatins DateTime values ?
>
> Demetrios, Greece
>
>
>



Re: ListView Control (2nd Try) by Demetrios

Demetrios
Wed Mar 16 07:15:46 CST 2005

Hi Hans,

I have tried this.
It only aligns the header not the text in the columns (VFP 6)

Demetrios, Greece


"Hans" <hans.degroot@planet.nl> wrote in message
news:%23DJ$qeiKFHA.1308@TK2MSFTNGP15.phx.gbl...
Hi,

Yes you can set the alignment for all columns:

cHeader = "MyColumn"
nWidth = 100
nAlignment = 1 && 0 = left
This.ListView.ColumnHeaders.Add( , ,cHeader, nWidth, nAlignment)

No, sorting dates doesn't work. A shame really. Go see:
http://support.microsoft.com/kb/170884/EN-US/

Hans


"Demetrios Panayotakopoulos" <dpanayotakopoulos_my_dat@_my_ametro.gr>
schreef in bericht news:%23TyhDKhKFHA.2936@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> Is it possible to align to the right the subitems' text.
> Is is possible to sort correctly if a subitem conatins DateTime values ?
>
> Demetrios, Greece
>
>
>




Re: ListView Control (2nd Try) by Hans

Hans
Wed Mar 16 09:18:15 CST 2005

It should work. Don't you have to RTRIM() the data in the column?

"Demetrios Panayotakopoulos" <dpanayotakopoulos_my_dat@_my_ametro.gr>
schreef in bericht news:ejL0gsiKFHA.244@TK2MSFTNGP12.phx.gbl...
> Hi Hans,
>
> I have tried this.
> It only aligns the header not the text in the columns (VFP 6)
>
> Demetrios, Greece
>
>
> "Hans" <hans.degroot@planet.nl> wrote in message
> news:%23DJ$qeiKFHA.1308@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> Yes you can set the alignment for all columns:
>
> cHeader = "MyColumn"
> nWidth = 100
> nAlignment = 1 && 0 = left
> This.ListView.ColumnHeaders.Add( , ,cHeader, nWidth, nAlignment)
>
> No, sorting dates doesn't work. A shame really. Go see:
> http://support.microsoft.com/kb/170884/EN-US/
>
> Hans
>
>
> "Demetrios Panayotakopoulos" <dpanayotakopoulos_my_dat@_my_ametro.gr>
> schreef in bericht news:%23TyhDKhKFHA.2936@TK2MSFTNGP15.phx.gbl...
>> Hi,
>>
>> Is it possible to align to the right the subitems' text.
>> Is is possible to sort correctly if a subitem conatins DateTime values ?
>>
>> Demetrios, Greece
>>
>>
>>
>
>
>



Re: ListView Control (2nd Try) by Demetrios

Demetrios
Thu Mar 17 01:04:35 CST 2005

The text data are trimmed. ( AllTrim() )
Anyway I had tried with numbers too.

Demetrios, Greece

"Hans" <hans.degroot@planet.nl> wrote in message
news:ua91XtjKFHA.2852@TK2MSFTNGP14.phx.gbl...
It should work. Don't you have to RTRIM() the data in the column?

"Demetrios Panayotakopoulos" <dpanayotakopoulos_my_dat@_my_ametro.gr>
schreef in bericht news:ejL0gsiKFHA.244@TK2MSFTNGP12.phx.gbl...
> Hi Hans,
>
> I have tried this.
> It only aligns the header not the text in the columns (VFP 6)
>
> Demetrios, Greece
>
>
> "Hans" <hans.degroot@planet.nl> wrote in message
> news:%23DJ$qeiKFHA.1308@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> Yes you can set the alignment for all columns:
>
> cHeader = "MyColumn"
> nWidth = 100
> nAlignment = 1 && 0 = left
> This.ListView.ColumnHeaders.Add( , ,cHeader, nWidth, nAlignment)
>
> No, sorting dates doesn't work. A shame really. Go see:
> http://support.microsoft.com/kb/170884/EN-US/
>
> Hans
>
>
> "Demetrios Panayotakopoulos" <dpanayotakopoulos_my_dat@_my_ametro.gr>
> schreef in bericht news:%23TyhDKhKFHA.2936@TK2MSFTNGP15.phx.gbl...
>> Hi,
>>
>> Is it possible to align to the right the subitems' text.
>> Is is possible to sort correctly if a subitem conatins DateTime values ?
>>
>> Demetrios, Greece
>>
>>
>>
>
>
>