 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Patrick Guest
|
Posted: Mon Dec 29, 2003 2:48 pm Post subject: Positionning Col in DBGrid |
|
|
Hello,
I would have the 5th col at the left of a DBGrid for exemple.I know the
fieldname and would have it in the "first" displayed column.
Is it possible without using SQL?
I have looked in TDBGrid and TColumn and found nothing
Could you help me please.
I thank you in advance
Patrick
|
|
| Back to top |
|
 |
Matt Guest
|
Posted: Mon Dec 29, 2003 3:09 pm Post subject: Re: Positionning Col in DBGrid |
|
|
Hello,
Select your DBGrid
In the properties (Object Inspector), you will find the "Columns" property.
Select the three dots (...) and a panel will appear.
Select "Add All Fields"
You can now show what you want.
When you select a columns in this dialog, you can even specify the text that
must appear (if you want a name != from the name of you table)
Does it help ?
Regards,
Matt.
"Patrick" <patartaud (AT) wanadoo (DOT) fr> a écrit dans le message de news:
3ff03eaf$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hello,
I would have the 5th col at the left of a DBGrid for exemple.I know the
fieldname and would have it in the "first" displayed column.
Is it possible without using SQL?
I have looked in TDBGrid and TColumn and found nothing
Could you help me please.
I thank you in advance
Patrick
|
|
|
| Back to top |
|
 |
Jayme Jeffman Filho Guest
|
Posted: Tue Jan 06, 2004 1:40 pm Post subject: Re: Positionning Col in DBGrid |
|
|
Hello Patrick,
You can just set up the DBGrid->Columns->Items[ColumnIndex]->Index = 0; This will change the column position in the grid, all the other columns of the grid will be repositioned.
HTH
Jayme.
"Patrick" <patartaud (AT) wanadoo (DOT) fr> wrote
| Quote: | Hello,
I would have the 5th col at the left of a DBGrid for exemple.I know the
fieldname and would have it in the "first" displayed column.
Is it possible without using SQL?
I have looked in TDBGrid and TColumn and found nothing
Could you help me please.
I thank you in advance
Patrick
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|