Change line rendering method for grid