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
4032
How modify edit mode appearance
posted

I'm using a prededefined office style lib in my app.

I like to override some appearance in a UltraWinGrid: I have multiline text in a cell. If enter edit mode the text appears selected and it moves a little bit to the right. Sometimes this forces a additional line break and not all the text is visible anymore.

Which appearance property I have to override so that text in edit mode is placed always at the some position (margins,?). Is it possible to change it directly in the style library?

Thanks for any help.

Markus

Parents
  • 469350
    Offline posted

    Hi Markus,

    By default, the text in the grid (or any of the Infragistics Winforms controls) draws using GDI Plus. When you enter edit mode in a cell, depending on the data type, it may be using an inbox TextBox control, which uses GDI. So this might cause the text to appear to shift a little.

    The easiest thing to do is make the control, or the whole application, use GDI - that way everything is consistent.

    You can do this by setting the TextRenderingMode property on the control (the grid in this case).

    Or you can set it for the whole application by setting a static property:

    Infragistics.Win.DrawUtility.UseGDIPlusTextRendering = false;

Reply Children