Link to home
Start Free TrialLog in
Avatar of ST3VO
ST3VOFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Replace Data on DBGrid

Hi Experts,

I've got a DBGrid populated and I need to replace the Column name and all the Column data from it.

For example:

I'm got a column called

'Column7'
-----------
somedata1
somedata2
etc

I need to change it to this:

'ImagePath'
-------------
SomePath
SomePath
etc...

The field somePath is always going to be the same.

Hope you can help!

Thanks

ST3VO
Avatar of mokule
mokule
Flag of Poland image

You should populate DBGrid using Query.
If You want to change only the column's title You can dblclick dbgrid and edit columns.
An appropriate dataset should be active.
Avatar of ST3VO

ASKER

I need to do all the by code and not manually.

An example code would be perfect!
ASKER CERTIFIED SOLUTION
Avatar of rfwoolf
rfwoolf
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ST3VO

ASKER

Perfect! Thanks :o)