ST3VO
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
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
ASKER
I need to do all the by code and not manually.
An example code would be perfect!
An example code would be perfect!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect! Thanks :o)
If You want to change only the column's title You can dblclick dbgrid and edit columns.
An appropriate dataset should be active.