Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
745
Padding different for a text or numeric value
posted

Hi,

I have an issue with the padding of cell content in my UltraWinGrid. Depending on their type (numeric or text), the padding is different.

I attached a screenshot showing the issue. Note that the issue is still present if both content are aligned on the same side.

Parents
  • 469350
    Offline posted

    Hi,

    I'm afraid I'm not following you. What padding are you referring to? It looks to me like your numeric column is aligned to the right and your text column is aligned to the left. These are the default alignments for text in the grid.

    You say the alignment is the same, but it doesn't look like it to me. Which side are you aligning to and how you are applying that alignment?

    If both of these columns are aligned to the left, then my guess is that the numeric column is accounting for the mask placeholders and that's why it's so far over to the right. To avoid that, you would have to change the mask to have fewer leading digits or else don't use a mask for your numeric column.

Reply Children