How can I modify the horizontal space between the grid line and the cell text in an edit cell or any other cell type?

You should override CGXControl::GetCellRect.