cell drawing: spacing between cell text and border

Oct 6, 2009 at 11:48 AM

I recently upgraded SourceGrid in my project from version 3 to 4.
I noticed that the spacing between the cell text and the cell border has increased; that is, a text that fit exactly into a cell of fixed width and height in version 3 doesn't totally fit into the same cell in version 4.
I'm forced to fit a text as big as possible into that cell with given width and height.

How can I design a custom view to reduce the spacing between text and cell border? Or is there another solution?

Thanks a lot for any suggestions!

Oct 8, 2009 at 9:06 AM

Hi Anne,  i do not know how version 3 worked before, but to design a custom view you can try extend SourceGrid.Cells.Views.Cell class to get what you need. I am not sure where the spacing comes from, if you find out, please share !

Jan 14, 2012 at 5:23 AM
Edited Jan 14, 2012 at 5:49 AM


I am interested in this myself. I want be able to to make text bigger or cell border "tighter" around text/data in cell.

Preferebly I would like to change font to some font that is very compact and auto size cell width / height so there is "very little" spacing?

How do you control spacing? I am using 4.30