We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cell padding and spacing

Thread ID:

Created:

Updated:

Platform:

Replies:

5895 Jul 23,2003 09:29 AM UTC Jul 23,2003 10:21 PM UTC WinForms 3
loading
Tags: GridControl
Paul Laudeman
Asked On July 23, 2003 09:29 AM UTC

I'm trying to figure out how I can specify the cell padding and cell spacing properties, like you would with a regular HTML table. What I refer to as the cell padding is the amount of padded space within the cell to the cell border. What I refer to as cell spacing is the amount of space between the cells. If I set the BorderMargins property, I seem to get an appearance like the cell padding property - but not as I expect. As I increase the margins, the text within the cells is eventually hidden as the size of the margin is increased. I believe the expected behavior should be to increase the size of the cell so that the contents remain visible, no matter what margin size is specified. I'd also like to know how to cell the spacing between the cells. I cannot seem to find this property or documentation referring to it. Thanks!

Arun Srinivasan [Syncfusion]
Replied On July 23, 2003 12:40 PM UTC

Hi Paul, Did you try using the TextMargins Property? Arun

Paul Laudeman
Replied On July 23, 2003 01:17 PM UTC

Hi Arun, Thanks for your reply. I missed the TextMargins property the first time around but when I tried it, I still had the same problem. Please see attached for a sample (screenshot included) -- hopefully I'm missing something simple! > Hi Paul, > > Did you try using the TextMargins Property? > Arun

Administrator [Syncfusion]
Replied On July 23, 2003 10:21 PM UTC

In your sample, if you increase the size the rowheight of row 2, you will see the text with the extra space around it. It is the extra space that is causing the text to be clipped as it is drawn. if you add this line, the row height will auto size initially. this.gridControl1.RowHeights.ResizeToFit(GridRangeInfo.Col(2));

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;